使用创建springboot项目时候出现了问题
选择的依赖是
又导入了mybatis和pagehelper
随便配置了一下
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
就报了一个错误信息
翻译一下就是 pagehelper循环依赖自己造成的错误
找过一部分文档,后来看了一下依赖的版本,父工程的版本是2.6.0
修改版本为
再次启动错误没了