|
@ -116,7 +116,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter { |
|
|
// 过滤请求
|
|
|
// 过滤请求
|
|
|
.authorizeRequests() |
|
|
.authorizeRequests() |
|
|
// 对于登录login 注册register 验证码captchaImage 允许匿名访问
|
|
|
// 对于登录login 注册register 验证码captchaImage 允许匿名访问
|
|
|
.antMatchers("/login", "/register", "/captchaImage").anonymous() |
|
|
.antMatchers("/login", "/register", "/captchaImage","/dc/**").anonymous() |
|
|
.antMatchers( |
|
|
.antMatchers( |
|
|
HttpMethod.GET, |
|
|
HttpMethod.GET, |
|
|
"/", |
|
|
"/", |
|
@ -126,8 +126,8 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter { |
|
|
"/**/*.js", |
|
|
"/**/*.js", |
|
|
"/profile/**" |
|
|
"/profile/**" |
|
|
).permitAll() |
|
|
).permitAll() |
|
|
// .antMatchers("/swagger-ui.html").anonymous()
|
|
|
.antMatchers("/swagger-ui.html").anonymous() |
|
|
// .antMatchers("/swagger-resources/**").anonymous()
|
|
|
.antMatchers("/swagger-resources/**").anonymous() |
|
|
.antMatchers("/webjars/**").anonymous() |
|
|
.antMatchers("/webjars/**").anonymous() |
|
|
.antMatchers("/*/api-docs").anonymous() |
|
|
.antMatchers("/*/api-docs").anonymous() |
|
|
.antMatchers("/druid/**").anonymous() |
|
|
.antMatchers("/druid/**").anonymous() |
|
|