在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及以上版本。
    在这里插入图片描述
    在这里插入图片描述

  • 第二种方式,访问https://start.spring.io/actuator/info
    在这里插入图片描述
    格式化后的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
    Logo

    华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

    更多推荐