报Error creating bean with name 'springSecurityFilterChain' defined in class...

来源:6-4 重构用户名密码登录

慕后端5546318

2018-04-20

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'springSecurityFilterChain' defined in class path resource [org/springframework/security/config/annotation/web/configuration/WebSecurityConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [javax.servlet.Filter]: Factory method 'springSecurityFilterChain' threw exception; nested exception is java.lang.IllegalStateException: Cannot apply org.springframework.security.config.annotation.web.configurers.ExpressionUrlAuthorizationConfigurer@305aaedf to already built object

请老师解答一下,谢谢!


写回答

1回答

慕后端5546318

提问者

2018-04-20

解决了,BrowserProperties 里的 signOutUrl属性配置一个默认值,就可以了

1
0

Spring Security技术栈开发企业级认证与授权

Spring Security技术栈,REST风格开发常见接口,独立开发认证授权模块保证REST服务安全

2662 学习 · 1561 问题

查看课程