!74 update ruoyi-framework/src/main/java/com/ruoyi/framework/config/SecurityConfig.java.

Merge pull request !74 from Lyy/N/A
This commit is contained in:
若依 2020-08-18 17:30:18 +08:00 committed by Gitee
commit c89722a7dd
1 changed files with 1 additions and 1 deletions

View File

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