|
|
|
@ -111,7 +111,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
|
|
|
|
|
.antMatchers("/login", "/register", "/captchaImage").permitAll()
|
|
|
|
|
// 静态资源,可匿名访问
|
|
|
|
|
.antMatchers(HttpMethod.GET, "/", "/*.html", "/**/*.html", "/**/*.css", "/**/*.js", "/profile/**").permitAll()
|
|
|
|
|
.antMatchers("/swagger-ui.html", "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**", "/zhiyuanzhe/**").permitAll()
|
|
|
|
|
.antMatchers("/swagger-ui.html", "/swagger-resources/**", "/webjars/**", "/*/api-docs").permitAll()
|
|
|
|
|
// // 放开志愿者和system接口
|
|
|
|
|
// .antMatchers("/zhiyuanzhe/**").anonymous()
|
|
|
|
|
// .antMatchers("/system/**").anonymous()
|
|
|
|
|