如果要在现有的springboot服务中添加spring cloud生态,首先需要解决的就是版本问题。
spring cloud的版本取决于spring的版本,下面取自spring官网的版本对应关系
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.3.0.RELEASE</version>
<!-- <version>2.1.3.RELEASE</version> -->
<relativePath/>
</parent>
<distributionManagement>
<site>
<id>website</id>
<url>scp://webhost.company.com/www/website</url>
</site>
</distributionManagement>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<spring-cloud.ve