SpringSecurity登陆受权出现This object has not been built问题解决
问题
在使用SpringSecurity作登陆受权时,出现了这样的异常:java.lang.IllegalStateException: This object has not been builtjava
@Override
protected void configure(HttpSecurity httpSecurity) throws Exception {
httpSecurity
// 原因
.csrf(Customizer.withDefaults());
... ...
改成
@Override
protected void configure(HttpSecurity httpSecurity) throws Exception {
httpSecurity
.csrf()
... ...
还没有评论,来说两句吧...