fix: 修改sercurity的放行策略
This commit is contained in:
		| @@ -48,10 +48,11 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter { | ||||
|                 .and() | ||||
|                 .authorizeRequests() | ||||
|                 // 对于登录接口 允许匿名访问 | ||||
|                 .antMatchers("/login","/swagger/**","/v2/api-docs", | ||||
|                 .antMatchers("/login","/swagger/**","/v2/**", | ||||
|                         "/doc.html", | ||||
|                         "/swagger-resources/**", | ||||
|                         "/swagger-ui/**").anonymous() | ||||
|                         "/swagger-ui/**", | ||||
|                         "/webjars/**").anonymous() | ||||
| //                .antMatchers("/testCors").hasAuthority("system:dept:list222") | ||||
|                 // 除上面外的所有请求全部需要鉴权认证 | ||||
|                 .anyRequest().authenticated(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user