Spring Boot 2.0 Projects
上QQ阅读APP看书,第一时间看更新

Using the AuthenticationManager bean 

Exposing a custom AuthenticationManager bean can now be done with an overriding WebSecurityConfigurerAdapter.authenticationManagerBean method annotated with a @Bean annotation.