Spring Security 'authenticationManager' @Autowired Error...

Spring Security 'authenticationManager' @Autowired Error...

Spring Security 공부하다가 authenticationManager를 찾을 수 없다고 에러가 뜬다.

Spring boot 2.0 부터 WebSecurityConfigurerAdapter 의 authenticationManagerBean를 오버라이드 하고

bean으로 등록 후 사용 가능하다.

참고 SpringBoot Guide

SecurityConfig class

@Configuration @EnableWebSecurity public class SecurityConfig extends WebSecurityConfigurerAdapter { @Override @Bean public AuthenticationManager authenticationManagerBean() throws Exception { return super.authenticationManagerBean(); } }

에러가 사라졌다 !!!!!!! 새벽5시에 기분이 너무 조으다

from http://xohoon.tistory.com/3 by ccl(A) rewrite - 2020-03-19 06:20:24

댓글

이 블로그의 인기 게시물

데이터 바인딩 추상화 - propertyEditor

[샤니마스 SPRING PARTY2020] THE IDOLM @ STER SHINY COLORS SPRING...

Spring Web Form