Spring boot升级错误
Spring boot应用程序升级到2.6.0后循环依赖导致启动失败
Error creating bean with name 'securityConfig':
Requested bean is currently in creation: Is there an
unresolvable circular reference?
发布于 2021-11-19 15:05:38
spring boot版本2.6中的Circular References Prohibited by Default
如果您的应用程序由于BeanCurrentlyInCreationException而无法启动,强烈建议您更新配置以打破依赖循环。
临时解决方案是恢复2.5的行为,在.properties/yml
中设置以下内容:
spring:
main:
allow-circular-references: true
https://stackoverflow.com/questions/70036903
复制相似问题