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回答

甲蛙

2022-02-03

可能高版本写法变了,看下这篇:https://blog.csdn.net/bbaa_cheng/article/details/121627346
下载视频          
1
0

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>
4
0

Spring Boot+Vue3前后端分离,实战wiki知识库系统

一课掌握前后端最火框架,更有职场竞争力

2525 学习 · 1673 问题

查看课程