|
@@ -99,6 +99,9 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter
|
|
|
.authorizeRequests()
|
|
.authorizeRequests()
|
|
|
// 对于登录login 验证码captchaImage 允许匿名访问
|
|
// 对于登录login 验证码captchaImage 允许匿名访问
|
|
|
.antMatchers("/login", "/captchaImage").anonymous()
|
|
.antMatchers("/login", "/captchaImage").anonymous()
|
|
|
|
|
+ // 关闭 Druid 监控与 Swagger/BootstrapUI 文档对外访问
|
|
|
|
|
+ .antMatchers("/druid/**", "/swagger-ui.html", "/swagger-resources/**", "/webjars/**",
|
|
|
|
|
+ "/*/api-docs", "/v2/api-docs", "/doc.html", "/doc.html/**").denyAll()
|
|
|
.antMatchers(
|
|
.antMatchers(
|
|
|
HttpMethod.GET,
|
|
HttpMethod.GET,
|
|
|
"/*.html",
|
|
"/*.html",
|
|
@@ -114,11 +117,6 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter
|
|
|
.antMatchers("/profile/**").anonymous()
|
|
.antMatchers("/profile/**").anonymous()
|
|
|
.antMatchers("/common/download**").anonymous()
|
|
.antMatchers("/common/download**").anonymous()
|
|
|
.antMatchers("/common/download/resource**").anonymous()
|
|
.antMatchers("/common/download/resource**").anonymous()
|
|
|
- .antMatchers("/swagger-ui.html").anonymous()
|
|
|
|
|
- .antMatchers("/swagger-resources/**").anonymous()
|
|
|
|
|
- .antMatchers("/webjars/**").anonymous()
|
|
|
|
|
- .antMatchers("/*/api-docs").anonymous()
|
|
|
|
|
- .antMatchers("/druid/**").anonymous()
|
|
|
|
|
.antMatchers("/expense/**").anonymous()
|
|
.antMatchers("/expense/**").anonymous()
|
|
|
.antMatchers("/qwEvent/**").anonymous()
|
|
.antMatchers("/qwEvent/**").anonymous()
|
|
|
.antMatchers("/imserver/**").anonymous()
|
|
.antMatchers("/imserver/**").anonymous()
|