From 5c12c5a4490898f20259e9de83767c4dadff10ba Mon Sep 17 00:00:00 2001 From: wjli <591616088@qq.com> Date: 星期二, 16 五月 2023 15:42:05 +0800 Subject: [PATCH] 1.根据区域进行模糊查询 --- xboot-core/src/main/java/cn/exrick/xboot/core/config/security/WebSecurityConfig.java | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/xboot-core/src/main/java/cn/exrick/xboot/core/config/security/WebSecurityConfig.java b/xboot-core/src/main/java/cn/exrick/xboot/core/config/security/WebSecurityConfig.java index 01a6591..fabd594 100644 --- a/xboot-core/src/main/java/cn/exrick/xboot/core/config/security/WebSecurityConfig.java +++ b/xboot-core/src/main/java/cn/exrick/xboot/core/config/security/WebSecurityConfig.java @@ -81,6 +81,7 @@ @Override protected void configure(AuthenticationManagerBuilder auth) throws Exception { + auth.authenticationProvider(new DaoAuthenticationProvider()); auth.userDetailsService(userDetailsService).passwordEncoder(new BCryptPasswordEncoder()); } @@ -131,7 +132,7 @@ // 鑷畾涔夋潈闄愭嫆缁濆鐞嗙被 .exceptionHandling().accessDeniedHandler(accessDeniedHandler) .and() - // 鍥惧舰楠岃瘉鐮佽繃婊ゅ櫒 + //鍥惧舰楠岃瘉鐮佽繃婊ゅ櫒 //.addFilterBefore(imageValidateFilter, UsernamePasswordAuthenticationFilter.class) // 鐭俊楠岃瘉鐮佽繃婊ゅ櫒 //.addFilterBefore(smsValidateFilter, UsernamePasswordAuthenticationFilter.class) -- Gitblit v1.9.1