Commit 4f7702b2 authored by Lyy's avatar Lyy Committed by Gitee

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

修改注释,CRSF禁用
parent d596d5bb
...@@ -88,7 +88,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter ...@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment