|
|
@@ -114,10 +114,10 @@ public class SecurityConfig |
|
|
|
requests.antMatchers("/login", "/register", "/captchaImage").permitAll() |
|
|
|
// 静态资源,可匿名访问 |
|
|
|
.antMatchers(HttpMethod.GET, "/", "/*.html", "/**/*.html", "/**/*.css", "/**/*.js", "/profile/**").permitAll() |
|
|
|
.antMatchers("/swagger-ui.html", "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**").permitAll() |
|
|
|
//.antMatchers("/swagger-ui.html", "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**").permitAll() |
|
|
|
// open 统一放行 |
|
|
|
.antMatchers("/open/**").permitAll() |
|
|
|
|
|
|
|
|
|
|
|
// 除上面外的所有请求全部需要鉴权认证 |
|
|
|
.anyRequest().authenticated(); |
|
|
|
}) |
|
|
|