SpringBoot引入pagehelper依赖,报错
查了资料,是因为pagehelper版本不对,存在循环依赖问题。
主要是参考这一篇spring-boot高版本集成com.github.pagehelper出现循环依赖的问题
原来的pagehelper版本是1.3.0,现在改成了1.4.2,就可以正常运行了。
<dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper-spring-boot-starter</artifactId>
<version>1.4.2</version>
</dependency>