从零开始SpringCloud Alibaba实战(82)——如何选择SpringCloud对应的SpringBoot版本

一、描述

在实际开发中经常会使用到springCloud对应的springboot版本,如果版本不对应,会踩很多坑,如何去查找springcloud版本对应的springboot版本呢?

二、SpringBoot版本的选择

1、SpringBoot官网地址

百度直接搜索springboot,或者直接点击此链接https://spring.io/projects/spring-boot进入springboot官网。如下图:、

在这里插入图片描述
由图可知,SpringBoot官方目前最新最稳定版:2.5.4,如果单独使用SpringBoot的话,建议就可以选择官方指定的最新最稳定版。

如果SpringBoot项目需要与SpringCloud整合,就得看SpringCloud的版本需要适配SpringBoot的哪个版本了。接下来介绍SpringCloud版本的选择及springcloud对应的SpringBoot版本。

三、SpringCloud版本的选择

1、SpringCloud官网地址

百度直接搜索springcloud,或者直接点击此链接https://spring.io/projects/spring-cloud进入springcloud官网。如下图:

在这里插入图片描述

SpringCloud官方目前最新最稳定版:2020.0.3,如果单独使用SpringCloud的话,建议选择官方指定的最稳定版

四、如何根据SpringCloud版本确定SpringBoot版本

4.1、方式一(列表方式查找对应的SpringBoot版本)
(1)、进入SpringCloud官网首页,往下滚动鼠标,找到如下图位置,即是Spring Cloud版本对应的Spring Boot版本,如下图:
在这里插入图片描述
在这里插入图片描述

Table 1. Release train Spring Boot compatibility
Release TrainBoot Version

2020.0.x aka Ilford

2.4.x, 2.5.x (Starting with 2020.0.3)

Hoxton

2.2.x, 2.3.x (Starting with SR5)

Greenwich

2.1.x

Finchley

2.0.x

Edgware

1.5.x

Dalston

1.5.x

更详细的查找对应的SpringBoot版本
1、访问此链接:https://start.spring.io/actuator/info。

{"git":{"branch":"e47750bf26d8b7fa79877d6dc4458a8e1c2c2ad2","commit":{"id":"e47750b","time":"2021-09-16T04:58:34Z"}},"build":{"version":"0.0.1-SNAPSHOT","artifact":"start-site","versions":{"spring-boot":"2.5.4","initializr":"0.11.0-SNAPSHOT"},"name":"start.spring.io website","time":"2021-09-16T04:59:40.985Z","group":"io.spring.start"},"bom-ranges":{"azure":{"3.2.0":"Spring Boot >=2.3.0.M1 and <2.4.0-M1","3.5.0":"Spring Boot >=2.4.0.M1 and <2.5.0-M1","3.6.1":"Spring Boot >=2.5.0.M1 and <2.6.0-M1"},"codecentric-spring-boot-admin":{"2.4.3":"Spring Boot >=2.3.0.M1 and <2.6.0-M1"},"solace-spring-boot":{"1.1.0":"Spring Boot >=2.3.0.M1 and <2.6.0-M1"},"solace-spring-cloud":{"1.1.1":"Spring Boot >=2.3.0.M1 and <2.4.0-M1","2.1.0":"Spring Boot >=2.4.0.M1 and <2.6.0-M1"},"spring-cloud":{"Hoxton.SR12":"Spring Boot >=2.2.0.RELEASE and <2.4.0.M1","2020.0.3":"Spring Boot >=2.4.0.M1 and <2.5.5-SNAPSHOT","2020.0.4-SNAPSHOT":"Spring Boot >=2.5.5-SNAPSHOT and <2.6.0-M1","2021.0.0-M1":"Spring Boot >=2.6.0.M1 and <2.6.0-SNAPSHOT","2021.0.0-SNAPSHOT":"Spring Boot >=2.6.0-SNAPSHOT"},"spring-cloud-gcp":{"2.0.4":"Spring Boot >=2.4.0-M1 and <2.6.0-M1"},"spring-cloud-services":{"2.3.0.RELEASE":"Spring Boot >=2.3.0.RELEASE and <2.4.0-M1","2.4.1":"Spring Boot >=2.4.0-M1 and <2.5.0-M1"},"spring-geode":{"1.3.12.RELEASE":"Spring Boot >=2.3.0.M1 and <2.4.0-M1","1.4.10":"Spring Boot >=2.4.0-M1 and <2.5.0-M1","1.5.4":"Spring Boot >=2.5.0-M1 and <2.6.0-M1","1.6.0-M2":"Spring Boot >=2.6.0-M1"},"vaadin":{"14.7.0":"Spring Boot >=2.1.0.RELEASE and <2.6.0-M1"},"wavefront":{"2.0.2":"Spring Boot >=2.1.0.RELEASE and <2.4.0-M1","2.1.1":"Spring Boot >=2.4.0-M1 and <2.5.0-M1","2.2.0":"Spring Boot >=2.5.0-M1"}},"dependency-ranges":{"native":{"0.9.0":"Spring Boot >=2.4.3 and <2.4.4","0.9.1":"Spring Boot >=2.4.4 and <2.4.5","0.9.2":"Spring Boot >=2.4.5 and <2.5.0-M1","0.10.0":"Spring Boot >=2.5.0-M1 and <2.5.2","0.10.1":"Spring Boot >=2.5.2 and <2.5.3","0.10.2":"Spring Boot >=2.5.3 and <2.5.4","0.10.3":"Spring Boot >=2.5.4 and <2.5.5-SNAPSHOT","0.10.4-SNAPSHOT":"Spring Boot >=2.5.5-SNAPSHOT and <2.6.0-M1"},"okta":{"1.4.0":"Spring Boot >=2.2.0.RELEASE and <2.4.0-M1","1.5.1":"Spring Boot >=2.4.0-M1 and <2.4.1","2.0.1":"Spring Boot >=2.4.1 and <2.5.0-M1","2.1.1":"Spring Boot >=2.5.0-M1 and <2.6.0-M1"},"mybatis":{"2.1.4":"Spring Boot >=2.1.0.RELEASE and <2.5.0-M1","2.2.0":"Spring Boot >=2.5.0-M1"},"camel":{"3.5.0":"Spring Boot >=2.3.0.M1 and <2.4.0-M1","3.10.0":"Spring Boot >=2.4.0.M1 and <2.5.0-M1","3.11.1":"Spring Boot >=2.5.0.M1 and <2.6.0-M1"},"open-service-broker":{"3.2.0":"Spring Boot >=2.3.0.M1 and <2.4.0-M1","3.3.0":"Spring Boot >=2.4.0-M1 and <2.5.0-M1"}}}

格式化json后
在这里插入图片描述

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值