springsecurity
JSUITDLWXL
时代造就英雄
展开
-
springboot整合springsecurity时出现了localhost将您重定向次数过多 循环地址错误解决
查看代码,为了跳转到我们自己定义的登录页面,写了loginPage("/login.html"),按照正常的逻辑,应该我们在访问接口的时候,都会跳到登录页面,结果却报错了。其原因是我们在访问接口时,因为有 anyRequest(),对所有的请求都要进行认证,所以会跳到login.html这个页面,跳转过去之后去请求login.html这个页面也需要身份认证,所以还是跳到了login.html这个页面,形成了死循环,所以会出现这个错误。页面时发生了地址循环的现象,错误是重定向次数过多。原创 2022-12-24 12:27:28 · 1777 阅读 · 0 评论 -
java.lang.IllegalArgumentException: There is no PasswordEncoder mapped for the id “null“
【代码】java.lang.IllegalArgumentException: There is no PasswordEncoder mapped for the id "null"原创 2022-12-23 17:20:08 · 377 阅读 · 4 评论