From 8ef9926c44667087f361f246c4254e691edcbd1e Mon Sep 17 00:00:00 2001 From: PQZ Date: Wed, 28 Aug 2024 17:10:38 +0800 Subject: [PATCH] 1 --- .../module/jx/controller/{api => admin}/JxAuthController.java | 0 .../security/config/YudaoWebSecurityConfigurerAdapter.java | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename dl-module-jx/src/main/java/cn/iocoder/yudao/module/jx/controller/{api => admin}/JxAuthController.java (100%) diff --git a/dl-module-jx/src/main/java/cn/iocoder/yudao/module/jx/controller/api/JxAuthController.java b/dl-module-jx/src/main/java/cn/iocoder/yudao/module/jx/controller/admin/JxAuthController.java similarity index 100% rename from dl-module-jx/src/main/java/cn/iocoder/yudao/module/jx/controller/api/JxAuthController.java rename to dl-module-jx/src/main/java/cn/iocoder/yudao/module/jx/controller/admin/JxAuthController.java diff --git a/yudao-framework/yudao-spring-boot-starter-security/src/main/java/cn/iocoder/yudao/framework/security/config/YudaoWebSecurityConfigurerAdapter.java b/yudao-framework/yudao-spring-boot-starter-security/src/main/java/cn/iocoder/yudao/framework/security/config/YudaoWebSecurityConfigurerAdapter.java index 570896d4..186fc554 100644 --- a/yudao-framework/yudao-spring-boot-starter-security/src/main/java/cn/iocoder/yudao/framework/security/config/YudaoWebSecurityConfigurerAdapter.java +++ b/yudao-framework/yudao-spring-boot-starter-security/src/main/java/cn/iocoder/yudao/framework/security/config/YudaoWebSecurityConfigurerAdapter.java @@ -130,7 +130,7 @@ public class YudaoWebSecurityConfigurerAdapter { // 1.1 静态资源,可匿名访问 .antMatchers(HttpMethod.GET, "/*.html", "/**/*.html", "/**/*.css", "/**/*.js").permitAll() - .antMatchers(HttpMethod.POST, "/admin-api/rescue/login","/admin-api/jx/auth/getJxInfo", "/admin-api/rescue/loginApp","/admin-api/system/auth/loginApp", "/admin-api/rescue/driverLogin").anonymous() + .antMatchers(HttpMethod.POST, "/admin-api/rescue/login", "/admin-api/rescue/loginApp","/admin-api/system/auth/loginApp", "/admin-api/rescue/driverLogin").anonymous() // 1.2 设置 @PermitAll 无需认证 .antMatchers(HttpMethod.GET, permitAllUrls.get(HttpMethod.GET).toArray(new String[0])).permitAll() .antMatchers(HttpMethod.POST, permitAllUrls.get(HttpMethod.POST).toArray(new String[0])).permitAll()