继续前面的优化,今天升级了springboot的版本
1、修改版本,springboot和springcloud的版本都需要升级
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.1.6.RELEASE</version>
</parent>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>Greenwich.RELEASE</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
SpringBoot和SpringCloud的版本对应关系可以去springboot官网寻找,在help一栏有一个迁移专题https://github.com/spring
springboot1.5.9升级至2.1.6
最新推荐文章于 2024-07-13 08:00:00 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)