From 6148ca9ae8c8df495f80080bb7216741a3ec929d Mon Sep 17 00:00:00 2001 From: qdxkrs <39894542+qdxkrs@users.noreply.github.com> Date: Thu, 16 Jun 2022 10:50:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=BB=91=E5=8A=A8=E9=AA=8C?= =?UTF-8?q?=E8=AF=81=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com.anji.captcha.service.CaptchaCacheService | 0 .../main/java/com/ruoyi/framework/config/SecurityConfig.java | 3 ++- 2 files changed, 2 insertions(+), 1 deletion(-) rename ruoyi-admin/src/main/resources/META-INF/{ => services}/com.anji.captcha.service.CaptchaCacheService (100%) diff --git a/ruoyi-admin/src/main/resources/META-INF/com.anji.captcha.service.CaptchaCacheService b/ruoyi-admin/src/main/resources/META-INF/services/com.anji.captcha.service.CaptchaCacheService similarity index 100% rename from ruoyi-admin/src/main/resources/META-INF/com.anji.captcha.service.CaptchaCacheService rename to ruoyi-admin/src/main/resources/META-INF/services/com.anji.captcha.service.CaptchaCacheService diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/config/SecurityConfig.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/config/SecurityConfig.java index 793479b85..cdcff26ec 100644 --- a/ruoyi-framework/src/main/java/com/ruoyi/framework/config/SecurityConfig.java +++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/config/SecurityConfig.java @@ -97,7 +97,8 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter // 过滤请求 .authorizeRequests() // 对于登录login 注册register 验证码captchaImage 允许匿名访问 - .antMatchers("/login", "/register", "/captchaImage").anonymous() +// .antMatchers("/login", "/register", "/captchaImage").anonymous() + .antMatchers("/login", "/register", "/captcha/get", "/captcha/check").permitAll() .antMatchers( HttpMethod.GET, "/",