Error creating bean with name com.github.pagehelper.autoconfigure.PageHelperAutoConfiguration
Error creating bean with name com.github.pagehelper.autoconfigure.PageHelperAutoConfiguration
·
今天遇到了这个问题,分页插件出错,这是springboot项目导入pagehelper-spring-boot-starter依赖时触发的循环依赖问题,其实这个问题挺搞的,就是版本问题,
解决方法:
可以把spring-boot-starter-parent版本改为2.5.5
同时对应的pagehelper-spring-boot-starter版本改为1.2.10
我改成这样就没有报错,同时也完成了分页,之前是直接采用的pagehelper,但在sprinngboot下没有效果,于是换成了这个,最后遇到问题还是解决了,也可以是其他对应的版本,大家可以多试试。
分页效果:
更多推荐
已为社区贡献2条内容
所有评论(0)