问题出在应用上下文中的一些 Bean 存在循环依赖关系,具体来说是 com.github.pagehelper.autoconfigure.PageHelperAutoConfiguration 和其他 Bean 存在循环依赖。

解决方法是尽量避免循环依赖关系,如果必须要有,则需要设置 spring.main.allow-circular-references 为 true,以允许 Spring 自动尝试打破循环依赖关系。最好的解决方法是通过重构代码来消除循环依赖。

DescriptionThe dependencies of some of the beans in the application context form a cycle┌──-──┐ comgithubpagehelperautoconfigurePageHelperAutoConfiguration└──-──┘ActionRelying upon circular reference

原文地址: https://www.cveoy.top/t/topic/ht4a 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录