The dependencies of some of the beans in the application context form a cycle: ┌──->──┐ | com.github.pagehelper.autoconfigure.PageHelperAutoConfiguration └──<-──┘ Action

解决方案:
# 解决升级springboot2.6 因循环引用导致启动时报错
spring.main.allow-circular-references=true
应用中的某些bean形成了循环依赖:PageHelperAutoConfiguration导致启动时出错。为了解决这个问题,在升级到SpringBoot2.6后,可以设置`spring.main.allow-circular-references=true`允许循环引用。
6397

被折叠的 条评论
为什么被折叠?



