【问题】
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2022-01-21 16:07:26.022 ERROR 14512 --- [ restartedMain] o.s.b.d.LoggingFailureAnalysisReporter :
***************************
APPLICATION FAILED TO START
***************************
Description:
The dependencies of some of the beans in the application context form a cycle:
┌──->──┐
| com.github.pagehelper.autoconfigure.PageHelperAutoConfiguration
└──<-──┘
Action:
Relying upon circular references is discouraged and they are prohibited by default. Update your application to remove the dependency cycle between beans. As a last resort, it may be possible to break the cycle automatically by setting spring.main.allow-circular-references to true.
Process finished with exit code 0
解决办法:
按照上面问题描述推荐的解决方法
在application.properties配置文件中加入spring.main.allow-circular-references=true
2022年1月21日遇到,2023年8月5日发布