SpringCloud与SpringBoot的版本对应关系

在SpringCloud官网(https://spring.io/projects/spring-cloud)可以看到,当前(2021年11月),SpringCloud的最新GA版本是2020.0.4这一版。

在这里插入图片描述
除了2020.0.X版本外,SpringCloud之前的版本名称是伦敦地铁站的站名命名,且首字母顺序与版本时间顺序一致,如,
Angel
Brixton
Camden
Dalston
Edgware
Finchley
Greenwich
Hoxton

当SpringCloud的发布内容积累到临界点或者一个重大Bug被解决后,会发布一个"Service Releases"版本,简称"SR"版本。

在这里插入图片描述

SpringCloud与SpringBoot的版本对应关系,可以通过以下三种方式来确定。

  • 第一种方式,描述SpringCloud发布版本与SpringBoot版本兼容性的表格。

表中描述了一个大概范围,比如与SpringCloud Hoxton版本适配的SpringBoot版本应该是2.2.x版本或者2.3.x SR5及以上版本。
在这里插入图片描述
在这里插入图片描述

在这里插入图片描述
格式化后的JSON内容如下,

{
	"bom-ranges": {
		"spring-cloud": {
			"Hoxton.SR12": "Spring Boot >=2.2.0.RELEASE and <2.4.0.M1",
			"2020.0.4": "Spring Boot >=2.4.0.M1 and <2.5.7-SNAPSHOT",
			"2020.0.5-SNAPSHOT": "Spring Boot >=2.5.7-SNAPSHOT and <2.6.0-M1",
			"2021.0.0-M1": "Spring Boot >=2.6.0-M1 and <2.6.0-M3",
			"2021.0.0-M3": "Spring Boot >=2.6.0-M3 and <2.6.0-SNAPSHOT",
			"2021.0.0-SNAPSHOT": "Spring Boot >=2.6.0-SNAPSHOT"
		}
	}
}

json文件中描述的适配关系,相较于第一种方式中的兼容性表格,则更具体。如,使用SpringCloud Hoxton.SR12版本时,选择的SpringBoot版本应该在2.2.0.RELEASE~2.4.0.M1之间。

  • 第三种方式,SpringCloud参考文档推荐使用的SpringBoot版本。

在这里插入图片描述

这种方式就相当于精准推荐了,是最合适的选型方式。

附2022最新版本对应表:

SpringCloud版本SpringBoot版本
2021.0.1-SNAPSHOTSpring Boot >=2.6.4-SNAPSHOT and <2.7.0-M1
2021.0.0Spring Boot >=2.6.1 and <2.6.4-SNAPSHOT
2021.0.0-RC1Spring Boot >=2.6.0-RC1 and <2.6.1
2021.0.0-M3Spring Boot >=2.6.0-M3 and <2.6.0-RC1
2021.0.0-M1Spring Boot >=2.6.0-M1 and <2.6.0-M3
2020.0.5Spring Boot >=2.4.0.M1 and <2.6.0-M1
Hoxton.SR12Spring Boot >=2.2.0.RELEASE and <2.4.0.M1
Hoxton.BUILD-SNAPSHOTSpring Boot >=2.2.0.BUILD-SNAPSHOT
Hoxton.M2Spring Boot >=2.2.0.M4 and <=2.2.0.M5
Greenwich.BUILD-SNAPSHOSpring Boot >=2.1.9.BUILD-SNAPSHOT and <2.2.0.M4
Greenwich.SR2Spring Boot >=2.1.0.RELEASE and <2.1.9.BUILD-SNAPSHOT
Greenwich.M1Spring Boot >=2.1.0.M3 and <2.1.0.RELEASE
Finchley.BUILD-SNAPSHOTSpring Boot >=2.0.999.BUILD-SNAPSHOT and <2.1.0.M3
Finchley.SR4Spring Boot >=2.0.3.RELEASE and <2.0.999.BUILD-SNAPSHOT
Finchley.RC2Spring Boot >=2.0.2.RELEASE and <2.0.3.RELEASE
 Finchley.RC1 Spring Boot >=2.0.1.RELEASE and <2.0.2.RELEASE
Finchley.M9Spring Boot >=2.0.0.RELEASE and <=2.0.0.RELEASE
Finchley.M7Spring Boot >=2.0.0.RC2 and <=2.0.0.RC2
Finchley.M6Spring Boot >=2.0.0.RC1 and <=2.0.0.RC1
Finchley.M5Spring Boot >=2.0.0.M7 and <=2.0.0.M7
Finchley.M4Spring Boot >=2.0.0.M6 and <=2.0.0.M6
Finchley.M3Spring Boot >=2.0.0.M5 and <=2.0.0.M5
Finchley.M2Spring Boot >=2.0.0.M3 and <2.0.0.M5
Edgware.SR51.5.20.RELEASE
Edgware.SR51.5.16.RELEASE
Edgware.RELEASE1.5.9.RELEASE
Dalston.RC11.5.2.RELEASE
  • 6
    点赞
  • 26
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值