pagehelper循环依赖自己出现的问题


使用创建springboot项目时候出现了问题

image-20211126132015889

选择的依赖是image-20211126132108595

又导入了mybatis和pagehelper

image-20211126132245373

随便配置了一下

server.port=8000
#数据源
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.password=root
spring.datasource.username=root
spring.datasource.url=jdbc:mysql://192.168.192.1:3306/items?useUnicode=true&characterEncoding=utf8&serverTimezone=UTC

#192.168.192.1
#静态资源路径
spring.mvc.static-path-pattern=/static/**

#thymeleaf设置
#关闭缓存
spring.thymeleaf.cache=false
#设置前缀
spring.thymeleaf.prefix=classpath:/static/html/
spring.thymeleaf.mode=HTML
#设置后缀
spring.thymeleaf.suffix=.html

#mybatis设置
mybatis.mapper-locations=classpath:mappers/*.xml
mybatis.type-aliases-package=com.oracle.springboot.po

#分页插件配置
pagehelper.helper-dialect=mysql
pagehelper.reasonable=true
pagehelper.support-methods-arguments=true
pagehelper.params=count=countSql

就报了一个错误信息

image-20211126132509213

翻译一下就是 pagehelper循环依赖自己造成的错误

找过一部分文档,后来看了一下依赖的版本,父工程的版本是2.6.0

image-20211126132659147

修改版本为image-20211126132823155

再次启动错误没了

image-20211126132856559

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM