使用創建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
修改版本為
再次啟動錯誤沒了