Springboot 升级 2.6.0 以上版本

Springboot 升级 2.6.0 以上版本

因漏洞缺陷检测,升级Springboot 版本 2.6.8

解决方案

经多方求证发现报错原因在于springboot版本与pagehelper版本冲突。
pagehelper 查找对应的 springboot版本

https://mvnrepository.com/artifact/com.github.pagehelper/pagehelper-spring-boot-starter/1.4.2

升级springboot 版本

<dependency>
    <groupId>org.springframework.bootgroupId>
    <artifactId>spring-boot-starterartifactId>
    <version>2.6.8version>
dependency>

升级pagehelper 版本

<dependency>
    <groupId>com.github.pagehelpergroupId>
    <artifactId>pagehelper-spring-boot-starterartifactId>
    <version>1.4.2version>
dependency>
还需处理循环依赖
application.yml
spring:
	  mvc:
	    pathmatch:
	      matching-strategy: ant_path_matcher
希望我的解决方案对你有一点小小的帮助

你可能感兴趣的:(spring,boot,java,spring)