mirror of https://github.com/elunez/eladmin
禁用表单登陆
parent
8a8eb9d0a6
commit
1c19f5a614
|
@ -112,7 +112,8 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
|
|||
|
||||
// 授权异常
|
||||
.exceptionHandling().authenticationEntryPoint(unauthorizedHandler).and()
|
||||
|
||||
// 禁用表单登陆
|
||||
.formLogin().disable()
|
||||
// 不创建会话
|
||||
.sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS).and()
|
||||
|
||||
|
|
Loading…
Reference in New Issue