From 68d8a8bffdac8f71ceff4f2bf9874d367ae71739 Mon Sep 17 00:00:00 2001 From: xuefei <564615061@qq.cm> Date: 星期一, 08 五月 2023 16:07:04 +0800 Subject: [PATCH] 跨域 --- xboot-core/src/main/java/cn/exrick/xboot/core/config/security/WebSecurityConfig.java | 1 + 1 files changed, 1 insertions(+), 0 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 60ee2e7..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()); } -- Gitblit v1.9.1