feat(新增编辑规则测试规则): 新增编辑规则测试规则2

This commit is contained in:
songanwei 2021-12-24 15:41:32 +08:00
commit e6b60bb0a8

View File

@ -50,7 +50,7 @@ public class SecurityConfiguration extends WebSecurityConfigurerAdapter {
protected void configure(HttpSecurity http) throws Exception {
http.csrf().disable()//禁用了 csrf 功能
.authorizeRequests()//限定签名成功的请求
//.antMatchers("/**").hasRole("ADMIN")
.antMatchers("/**").hasRole("ADMIN")
.anyRequest().permitAll()//其他没有限定的请求允许访问
.and().anonymous()//对于没有配置权限的其他请求允许匿名访问
.and().formLogin()//使用 spring security 默认登录页面