小码问答,有问必答!

2021-12-06 16:15

PageHelperAutoConfiguration出现了 circular references循环引用怎么回事?

2021-12-06 16:15 回答了这个问题

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.


补充:springboot2.6.0和springboot2.6.1只能使用pagehelper-spring-boot-starter1.4.1及以上版本,如果用低版本的pagehelper-spring-boot-starter,springboot需要降版本。

0条评论

我要评论