Browse Source

youhua

master
4670101279 10 months ago
parent
commit
8e2e97bf5a
  1. 2
      ruoyi-framework/src/main/java/com/ruoyi/framework/config/SecurityConfig.java

2
ruoyi-framework/src/main/java/com/ruoyi/framework/config/SecurityConfig.java

@ -97,7 +97,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter
// 过滤请求 // 过滤请求
.authorizeRequests() .authorizeRequests()
// 对于登录login 注册register 验证码captchaImage 允许匿名访问 // 对于登录login 注册register 验证码captchaImage 允许匿名访问
.antMatchers("/login", "/register", "/captchaImage", "/api").anonymous() .antMatchers("/login", "/register", "/captchaImage", "/api/**").anonymous()
.antMatchers( .antMatchers(
HttpMethod.GET, HttpMethod.GET,
"/", "/",

Loading…
Cancel
Save