HomeAboutMeBlogGuest
© 2025 Sejin Cha. All rights reserved.
Built with Next.js, deployed on Vercel
🧚
[1기]최종 프로젝트 데브코스
/
[팀12] 기부니🧡
[팀12] 기부니🧡
/
🏷️
기술 정리 & 이슈 관리
/
🔐
Spring Security + JWT 로그인 방법 & 유저 테스트 방법
🔐

Spring Security + JWT 로그인 방법 & 유저 테스트 방법

태그
 
 
 
 
 
 
 
 
Security 적용 후 통합테스트는 어떻게 ?
📢
로그인 후 이용가능한(권한 있는) 기능들은 테스트 코드를 어떻게 작성해야하는지 궁금하여 검색을 해보니 @WithMockUser , @WithUserDetails 등 다양한 방법들이 있었다.
11. Testing Method Security
This section demonstrates how to use Spring Security's Test support to test method based security. We first introduce a MessageService that requires the user to be authenticated in order to access it.
11. Testing Method Security
https://docs.spring.io/spring-security/site/docs/4.2.x/reference/html/test-method.html