Relying upon circular references is discouraged and they are prohibited by default. 解决循环依赖bug
在resources资源包里的application.properties配置文件中配置以下属性来恢复。
·

解决升级 Spring Boot2.6后,循环引用导致启动时报错的问题
依赖循环引用是不鼓励的,默认情况下是禁止的。更新应用程序以删除bean之间的依赖循环。作为最后的手段,可以通过设置spring.main来自动打破循环。
在resources资源包里的application.properties配置文件中配置以下属性来恢复
spring.main.allow-circular-references=true
更多推荐


所有评论(0)