修改权限配置

dongdingding
吴顺杰 1 year ago
parent f3e35e7de5
commit f72b2e4675

@ -112,8 +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()
// 放开所有接口
.antMatchers("/**").anonymous()
// 放开志愿者和system接口
.antMatchers("/zhiyuanzhe/**").anonymous()
.antMatchers("/system/**").anonymous()
// 除上面外的所有请求全部需要鉴权认证
.anyRequest().authenticated()
.and()

Loading…
Cancel
Save