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信息。

json内容

可以看到spring boot 2.3.3.RELEASE对应的是Hoxton.SR8

spring-cloud-dependencies 版本列表

spring-boot-starter-parent 版本列表

启动,成功

eureka启动成功

Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐