Thi*_*mal 29 java spring-boot java-17
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?
Run Code Online (Sandbox Code Playgroud)
Thi*_*mal 66
Circular References Prohibited by Default在 Spring Boot 2.6 版本中
如果您的应用程序由于 BeanCurrentlyInCreationException 而无法启动,强烈建议您更新配置以打破依赖循环。
\n临时解决方案是恢复 2.5\xe2\x80\x99s 行为,在 中设置以下内容.properties/yml,
spring: \n main:\n allow-circular-references: true\nRun Code Online (Sandbox Code Playgroud)\n请参阅这篇文章以获取深入的描述和一些可能的补救措施。
\n| 归档时间: |
|
| 查看次数: |
71130 次 |
| 最近记录: |