Pre Merge pull request !69 from Lyy/master

This commit is contained in:
Lyy 2020-08-14 09:41:10 +08:00 committed by Gitee
commit bf70f8bbd8

View File

@ -88,7 +88,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter
protected void configure(HttpSecurity httpSecurity) throws Exception
{
httpSecurity
// CRSF禁用因为不使用session
// CSRF禁用因为不使用session
.csrf().disable()
// 认证失败处理类
.exceptionHandling().authenticationEntryPoint(unauthorizedHandler).and()