Xuwanxin security config permit
This commit is contained in:
parent
4154770009
commit
7aa891969a
|
|
@ -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()
|
||||||
// 除上面外的所有请求全部需要鉴权认证,配置退出路径
|
// 除上面外的所有请求全部需要鉴权认证,配置退出路径
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user