SpringSecurity登陆受权出现This object has not been built问题解决
最新推荐文章于 2024-01-16 11:09:33 发布
在使用SpringSecurity进行登录授权时遇到异常:java.lang.IllegalStateException: This object has not been built。问题源于 CsrfConfigurer 的不正确使用。通过将 `.csrf(Customizer.withDefaults())` 更改为 `.csrf()`,修复了该问题,确保了HTTP安全配置的正确执行。

最低0.47元/天 解锁文章
1万+





