spring boot和spring cloud 版本对应
parent pom
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.3.3.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
child pom
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-eureka-server</artifactId>
</dependency>
</dependencies>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>Hoxton.SR8</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
关键要找对version
查询资料后发现,2.3.3.RELEASE对应的version如上所示。
查询地址,建议用firefox浏览器打开,这样显示的是格式化了的json信息。

可以看到spring boot 2.3.3.RELEASE对应的是Hoxton.SR8
spring-cloud-dependencies 版本列表:
spring-boot-starter-parent 版本列表:
启动,成功

本文详细介绍了SpringBoot 2.3.3.RELEASE版本与SpringCloud Hoxton.SR8版本的对应关系,展示了如何在项目中配置这两个依赖,并提供了查询版本对应关系的资料链接。通过正确的版本匹配,确保了SpringBoot和SpringCloud的兼容性,使得项目能够顺利启动并运行。
1601

被折叠的 条评论
为什么被折叠?



