Xuwanxin security config permit

This commit is contained in:
79493 2022-09-30 16:55:21 +08:00
parent 4154770009
commit 7aa891969a

View File

@ -69,8 +69,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
http http
.authorizeRequests() .authorizeRequests()
// 对于登录接口 允许匿名访问 // 对于登录接口 允许匿名访问
.antMatchers("/personal/login").anonymous() .antMatchers("/personal/login","/personal/entlogin").permitAll()
.antMatchers("/personal/entlogin").anonymous()
//放行swagger //放行swagger
.antMatchers("/swagger-ui.html","/swagger-resources/**","/webjars/**","/v2/**","/api/**").permitAll() .antMatchers("/swagger-ui.html","/swagger-resources/**","/webjars/**","/v2/**","/api/**").permitAll()
// 除上面外的所有请求全部需要鉴权认证,配置退出路径 // 除上面外的所有请求全部需要鉴权认证,配置退出路径