|
@@ -124,13 +124,13 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
|
|
|
// .antMatchers("/au/weiXinMp/getLoginUrl").anonymous()
|
|
|
// // 授权登录回调地址
|
|
|
.antMatchers("/large/**").anonymous()
|
|
|
- .antMatchers("/xxl-job-admin/**").anonymous()
|
|
|
+ //.antMatchers("/xxl-job-admin/**").anonymous()
|
|
|
// 对于登录login 注册register 验证码captchaImage 允许匿名访问
|
|
|
.antMatchers("/login", "/register", "/captchaImage").anonymous()
|
|
|
// 静态资源,可匿名访问
|
|
|
.antMatchers(HttpMethod.GET, "/", "/*.html", "/**/*.html", "/**/*.css", "/**/*.js", "/profile/**").permitAll()
|
|
|
.antMatchers( "/sxgw/**","/sxgw/**/**","/sxgw/**/**/**","/basics/**", "/basics/**/**", "/build/**", "/build/**/**","/employee/**", "/employee/**/**","/health/**", "/health/**/**","/post/**", "/post/**/**","/property/**", "/property/**/**","/smart/**", "/smart/**/**","/video/**", "/video/**/**").permitAll()
|
|
|
- .antMatchers("/large/**", "/swagger-ui.html", "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**").permitAll()
|
|
|
+ .antMatchers("/large/**", "/webjars/**", "/*/api-docs", "/druid/**").permitAll()
|
|
|
// 除上面外的所有请求全部需要鉴权认证
|
|
|
.anyRequest().authenticated()
|
|
|
.and()
|