com.github.pagehelper.autoconfigure.PageHelperAutoConfiguration
来源:6-4 使用PageHelper实现后端分页

weixin_慕斯卡0160118
2022-02-02
<dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper-spring-boot-starter</artifactId>
<version>1.2.13</version>
</dependency>
启动后提示有循环依赖,
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.
写回答
2回答
-
可能高版本写法变了,看下这篇:https://blog.csdn.net/bbaa_cheng/article/details/12162734610
-
Eason366
2022-03-08
PageHelper v1.4.1 升级 springboot 到 2.6.0,兼容性修复,解决循环依赖
在 pom.xml 中添加如下依赖:
<dependency> <groupId>com.github.pagehelper</groupId> <artifactId>pagehelper-spring-boot-starter</artifactId> <version>1.4.1</version> </dependency>
40