修改权限配置

dongdingding
吴顺杰 9 months ago
parent f72b2e4675
commit 7825799119

@ -112,9 +112,9 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
// 静态资源,可匿名访问
.antMatchers(HttpMethod.GET, "/", "/*.html", "/**/*.html", "/**/*.css", "/**/*.js", "/profile/**").permitAll()
.antMatchers("/swagger-ui.html", "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**", "/zhiyuanzhe/**").permitAll()
// 放开志愿者和system接口
.antMatchers("/zhiyuanzhe/**").anonymous()
.antMatchers("/system/**").anonymous()
// // 放开志愿者和system接口
// .antMatchers("/zhiyuanzhe/**").anonymous()
// .antMatchers("/system/**").anonymous()
// 除上面外的所有请求全部需要鉴权认证
.anyRequest().authenticated()
.and()

Loading…
Cancel
Save