AuthenticationPrincipal null

    AuthenticationPrincipal Null - 주입받지 못하는 이슈

    AuthenticationPrincipal Null 이슈 - 주입받지 못함 결론부터 AuthenticationPrincipalArgumentResolver 가 빈으로 등록되지 않음. 빈으로 등록해줘야함 @EnableWebSecurity는 설정했고, @EnableWebMvc는 등록안했다가 등록하니 해결됌 spring boot version : 2.7.4 implementation("org.springframework.boot:spring-boot-starter-security:2.7.4") 스프링 시큐리티를 사용하였을 때, 사용자가 인증된다면 Controller 에서 파라미터로 @AuthenticationPrincipal 을 주입 받을 수 있다. @AuthenticationPrincipal 로그인한 사용자..