当前位置: 代码迷 >> 综合 >> SpringCloud SpringCloudAlibaba SpringBoot版本对应关系
  详细解决方案

SpringCloud SpringCloudAlibaba SpringBoot版本对应关系

热度:62   发布时间:2023-12-21 15:39:31.0

本文主要总结一下目前为止SpringCloud、SpringCloudAlibaba、SpringBoot的版本对应关系,便于以后查阅。

使用Maven引入SpringCloud、SpringCloudAlibaba、SpringBoot的依赖的方式如下:

<dependencyManagement><!-- Spring Cloud 依赖 --><dependencies><dependency><groupId>org.springframework.cloud</groupId><artifactId>spring-cloud-dependencies</artifactId><version>${spring-cloud.version}</version><type>pom</type><scope>import</scope></dependency><!-- Spring Cloud Alibaba 依赖 --><dependency><groupId>com.alibaba.cloud</groupId><artifactId>spring-cloud-alibaba-dependencies</artifactId><version>${spring-cloud-alibaba.version}</version><type>pom</type><scope>import</scope></dependency><!-- Spring Boot 依赖 --><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-dependencies</artifactId><version>${spring-boot.version}</version><type>pom</type><scope>import</scope></dependency></dependencies>
</dependencyManagement>

Spring官网中给出的SpringCloud与SpringBoot的版本对应关系如下:

Release Train Boot Version
2020.0.x aka Ilford 2.4.x
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

Spring Cloud 2020.0.0版本开始,SpringCloud取消了之前的伦敦地铁站的命名方式,采用了新的命名方式2020.x.x
Spring Cloud 2020.0版本发生的改变可见Spring Cloud 2020.0 Release Notes。

SpringCloudAlibaba官方文档推荐使用的毕业版本依赖关系如下:

Spring Cloud Version Spring Cloud Alibaba Version Spring Boot Version
Spring Cloud 2020.0 2021.1 2.4.2.RELEASE
Spring Cloud Hoxton.SR8 2.2.5.RELEASE 2.3.2.RELEASE
Spring Cloud Greenwich.SR6 2.1.4.RELEASE 2.1.13.RELEASE
Spring Cloud Hoxton.SR3 2.2.1.RELEASE 2.2.5.RELEASE
Spring Cloud Hoxton.RELEASE 2.2.0.RELEASE 2.2.X.RELEASE
Spring Cloud Greenwich 2.1.2.RELEASE 2.1.X.RELEASE
Spring Cloud Finchley 2.0.4.RELEASE(停止维护,建议升级) 2.0.X.RELEASE
Spring Cloud Edgware 1.5.1.RELEASE(停止维护,建议升级) 1.5.X.RELEASE

SpringCloudAlibaba组件版本关系如下:

Spring Cloud Alibaba Version Sentinel Version Nacos Version RocketMQ Version Dubbo Version Seata Version
2021.1 or 2.2.5.RELEASE or 2.1.4.RELEASE or 2.0.4.RELEASE 1.8.0 1.4.1 4.4.0 2.7.8 1.3.0
2.2.3.RELEASE or 2.1.3.RELEASE or 2.0.3.RELEASE 1.8.0 1.3.3 4.4.0 2.7.8 1.3.0
2.2.1.RELEASE or 2.1.2.RELEASE or 2.0.2.RELEASE 1.7.1 1.2.1 4.4.0 2.7.6 1.2.0
2.2.0.RELEASE 1.7.1 1.1.4 4.4.0 2.7.4.1 1.0.0
2.1.1.RELEASE or 2.0.1.RELEASE or 1.5.1.RELEASE 1.7.0 1.1.4 4.4.0 2.7.3 0.9.0
2.1.0.RELEASE or 2.0.0.RELEASE or 1.5.0.RELEASE 1.6.3 1.1.1 4.4.0 2.7.3 0.7.1

SpringCloudAlibaba官方版本说明

通过https://start.spring.io/actuator/info也可以查看SpringCloud与SpringBoot的版本对应关系:

{
    "git": {
    "branch": "b47d72de2f6a2136920fd127ac9edab828c9866d","commit": {
    "id": "b47d72d","time": "2021-04-28T07:39:04Z"}},"build": {
    "version": "0.0.1-SNAPSHOT","artifact": "start-site","versions": {
    "spring-boot": "2.4.5","initializr": "0.11.0-SNAPSHOT"},"name": "start.spring.io website","time": "2021-04-28T07:40:38.897Z","group": "io.spring.start"},"bom-ranges": {
    "azure": {
    "2.2.4": "Spring Boot >=2.2.0.RELEASE and <2.3.0.M1","3.2.0": "Spring Boot >=2.3.0.M1 and <2.4.0-M1","3.4.0": "Spring Boot >=2.4.0.M1 and <2.5.0-M1"},"codecentric-spring-boot-admin": {
    "2.2.4": "Spring Boot >=2.2.0.RELEASE and <2.3.0.M1","2.3.1": "Spring Boot >=2.3.0.M1 and <2.5.0-M1"},"solace-spring-boot": {
    "1.0.0": "Spring Boot >=2.2.0.RELEASE and <2.3.0.M1","1.1.0": "Spring Boot >=2.3.0.M1 and <2.5.0-M1"},"solace-spring-cloud": {
    "1.0.0": "Spring Boot >=2.2.0.RELEASE and <2.3.0.M1","1.1.1": "Spring Boot >=2.3.0.M1 and <2.4.0-M1","2.0.0": "Spring Boot >=2.4.0.M1 and <2.5.0-M1"},"spring-cloud": {
    "Hoxton.SR11": "Spring Boot >=2.2.0.RELEASE and <2.3.11.BUILD-SNAPSHOT","Hoxton.BUILD-SNAPSHOT": "Spring Boot >=2.3.11.BUILD-SNAPSHOT and <2.4.0.M1","2020.0.0-M3": "Spring Boot >=2.4.0.M1 and <=2.4.0.M1","2020.0.0-M4": "Spring Boot >=2.4.0.M2 and <=2.4.0-M3","2020.0.0": "Spring Boot >=2.4.0.M4 and <=2.4.0","2020.0.2": "Spring Boot >=2.4.1 and <2.5.0-M1","2020.0.3-SNAPSHOT": "Spring Boot >=2.4.6-SNAPSHOT"},"spring-cloud-alibaba": {
    "2.2.1.RELEASE": "Spring Boot >=2.2.0.RELEASE and <2.3.0.M1"},"spring-cloud-gcp": {
    "2.0.0": "Spring Boot >=2.4.0-M1 and <2.5.0-M1"},"spring-cloud-services": {
    "2.2.6.RELEASE": "Spring Boot >=2.2.0.RELEASE and <2.3.0.RELEASE","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.2.12.RELEASE": "Spring Boot >=2.2.0.RELEASE and <2.3.0.M1","1.3.9.RELEASE": "Spring Boot >=2.3.0.M1 and <2.4.0-M1","1.4.4": "Spring Boot >=2.4.0-M1 and <2.5.0-M1","1.5.0-M3": "Spring Boot >=2.5.0-M1"},"vaadin": {
    "14.5.3": "Spring Boot >=2.1.0.RELEASE and <2.5.0-M1"},"wavefront": {
    "2.0.2": "Spring Boot >=2.1.0.RELEASE and <2.4.0-M1","2.1.0": "Spring Boot >=2.4.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-SNAPSHOT": "Spring Boot >=2.5.0-M1 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"},"mybatis": {
    "2.1.4": "Spring Boot >=2.1.0.RELEASE and <2.5.0-M1"},"camel": {
    "3.3.0": "Spring Boot >=2.2.0.RELEASE and <2.3.0.M1","3.5.0": "Spring Boot >=2.3.0.M1 and <2.4.0-M1","3.9.0": "Spring Boot >=2.4.0.M1 and <2.5.0-M1"},"open-service-broker": {
    "3.1.1.RELEASE": "Spring Boot >=2.2.0.RELEASE and <2.3.0.M1","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"}}
}

SpringBoot、SpringCloud、SpringCloudAlibaba的常用链接:

  • SpringBoot版本列表:https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-parent
  • SpringBoot最新GA版官方文档:https://docs.spring.io/spring-boot/docs/current/reference/html/
  • SpringCloud版本列表:https://mvnrepository.com/artifact/org.springframework.cloud/spring-cloud-dependencies
  • SpringCloud最新GA版官方文档:https://docs.spring.io/spring-cloud/docs/current/reference/html/
  • SpringCloudAlibaba版本列表:https://github.com/alibaba/spring-cloud-alibaba/releases
  • SpringCloudAlibaba官方文档:https://github.com/alibaba/spring-cloud-alibaba/wiki