|
|
@ -107,10 +107,9 @@ public class GlobalSecurityConfig extends WebSecurityConfigurerAdapter {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 手动注入 DaoAuthentication
|
|
|
|
* Injection DaoAuthenticationProvider
|
|
|
|
* 取代 void configure(AuthenticationManagerBuilder auth) 方法
|
|
|
|
* Modify hideUserNotFoundExceptions initial value to false
|
|
|
|
* 修改 hideUserNotFoundExceptions 初始值为 false
|
|
|
|
* Solve the problem of UserNotFoundException don't throw
|
|
|
|
* 解决 UserNotFoundException 不抛出问题
|
|
|
|
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Bean
|
|
|
|
@Bean
|
|
|
|
public DaoAuthenticationProvider authenticationProvider() {
|
|
|
|
public DaoAuthenticationProvider authenticationProvider() {
|
|
|
|