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

Merge pull request !74 from Lyy/N/A
master
若依 4 years ago committed by Gitee
commit c89722a7dd
  1. 2
      ruoyi-framework/src/main/java/com/ruoyi/framework/config/SecurityConfig.java

@ -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()

Loading…
Cancel
Save