update ruoyi-framework/src/main/java/com/ruoyi/framework/config/SecurityConfig.java.
修改注释// CRSF禁用,因为不使用session。 正确:CRSF --> CSRF 这个点在对应视频讲解中也因为注释写错而跟着说错了。 新手小白,看到这里,暂时发现这个小失误。
This commit is contained in:
parent
d596d5bb8e
commit
6da237ca65
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user