Nacos 版本

官方地址

如果使用 3.0及以上 版本的 Spring Boot 就看2022.x 分支的表格

如果 2.4.2 到 2.6.13(包含2.4.2和2.6.13) 之间版本的 Spring Boot 就看2021.x 分支的表格

如果 小于2.4.2 就看2.2.X 分支表格

如果要搭配其他组件,往下翻,找对应的 Spring Cloud Alibaba 版本号

在这里插入图片描述

最好使用表格中推荐的这几个版本,不然版本不兼容会出现很多问题,很费头发

其实通过这一个地址就可以把Cloud、Boot、Nacos版本找齐

下面东西纯纯做备注,不想看的可以忽略了


Spring Cloud Alibaba 版本

官方地址

确认Spring Cloud Alibaba的版本为:2021.0.4.0

在这里插入图片描述

Spring Cloud 常用组件版本

通过上面获取的Spring Cloud 和Spring Cloud Alibaba 的版本号

可以到 官方地址 里面查看

在这里插入图片描述

里面会有Spring Cloud小版本推荐的各个组件的版本号

别冒险,有问题,费头发

在这里插入图片描述

Spring Boot 版本

官方地址

这个地址只适用确认最新版本的Spring Boot及其组件版本,里面也不包含 Spring Cloud Alibaba 版本号 !😶😶

{
    "git": {
        "branch": "main",
        "commit": {
            "id": "038f771",
            "time": "2024-02-16T08:10:27Z"
        }
    },
    "build": {
        "version": "0.0.1-SNAPSHOT",
        "artifact": "start-site",
        "versions": {
            "spring-boot": "3.2.2",
            "initializr": "0.21.0-SNAPSHOT"
        },
        "name": "start.spring.io website",
        "time": "2024-02-16T08:12:32.170Z",
        "group": "io.spring.start"
    },
    "bom-ranges": {
        "codecentric-spring-boot-admin": {
            "3.2.1": "Spring Boot >=3.1.0 and <3.3.0-M1"
        },
        "hilla": {
            "2.5.5": "Spring Boot >=3.1.0 and <3.3.0-M1"
        },
        "sentry": {
            "7.3.0": "Spring Boot >=2.7.0 and <3.3.0-M1"
        },
        "solace-spring-boot": {
            "2.0.0": "Spring Boot >=3.0.0"
        },
        "solace-spring-cloud": {
            "3.0.0": "Spring Boot >=3.0.0 and <3.1.0-M1",
            "3.1.0": "Spring Boot >=3.1.0-M1 and <3.3.0-M1"
        },
        "spring-cloud": {
            "2022.0.5": "Spring Boot >=3.0.0 and <3.2.0-M1",
            "2023.0.0-RC1": "Spring Boot >=3.2.0-M1 and <3.2.0",
            "2023.0.0": "Spring Boot >=3.2.0"
        },
        "spring-cloud-azure": {
            "5.9.1": "Spring Boot >=3.0.0 and <3.3.0-M1"
        },
        "spring-cloud-gcp": {
            "4.9.3": "Spring Boot >=3.0.0 and <3.2.0-M1",
            "5.0.3": "Spring Boot >=3.2.0-M1 and <3.3.0-M1"
        },
        "spring-cloud-services": {
            "4.0.3": "Spring Boot >=3.0.0 and <3.2.0-M1",
            "4.1.0": "Spring Boot >=3.2.0-M1 and <3.3.0-M1"
        },
        "spring-modulith": {
            "1.0.5": "Spring Boot >=3.1.0 and <3.2.0-M1",
            "1.1.2": "Spring Boot >=3.2.0-M1 and <3.3.0-M1",
            "1.2.0-M1": "Spring Boot >=3.3.0-M1"
        },
        "spring-shell": {
            "3.1.7": "Spring Boot >=3.1.0 and <3.2.0-M1",
            "3.2.0": "Spring Boot >=3.2.0-M1 and <3.3.0-M1"
        },
        "timefold-solver": {
            "1.7.0": "Spring Boot >=3.0.0 and <3.3.0-M1"
        },
        "vaadin": {
            "24.3.5": "Spring Boot >=3.0.0 and <3.3.0-M1"
        }
    },
    "dependency-ranges": {
        "dgs-codegen": {
            "6.0.3": "Spring Boot >=3.0.0-M1"
        },
        "okta": {
            "3.0.6": "Spring Boot >=3.0.0 and <3.3.0-M1"
        },
        "mybatis": {
            "3.0.3": "Spring Boot >=3.0.0"
        },
        "pulsar": {
            "0.2.0": "Spring Boot >=3.0.0 and <3.2.0-M3",
            "managed": "Spring Boot >=3.2.0-M3"
        },
        "pulsar-reactive": {
            "0.2.0": "Spring Boot >=3.0.0 and <3.2.0-M1",
            "managed": "Spring Boot >=3.2.0-M1"
        },
        "camel": {
            "4.2.0": "Spring Boot >=3.0.0 and <3.2.0-M1",
            "4.3.0": "Spring Boot >=3.2.0-M1 and <3.3.0-M1"
        },
        "picocli": {
            "4.7.5": "Spring Boot >=3.0.0 and <3.2.0-M1"
        },
        "wavefront": {
            "3.2.0": "Spring Boot >=3.2.0 and <3.3.0-M1",
            "managed": "Spring Boot >=3.3.0-M1"
        }
    }
}

备注

关于版本说明

Spring Cloud Alibaba:2.2.1.RELEASE
Spring Cloud:Spring Cloud Hoxton.SR3
Spring Boot:>=2.2.0.RELEASE and <2.3.0.M1

  1. 2:主版本号,当功能模块有较大更新或者整体架构发生变化时,主版本号会更新(第一个2)

  2. 2:次版本号。次版本表示只是局部的一些变动。(第二个2)

  3. 1:修改版本号。一般是BUG的修改或者是小的变动

  4. RELEASE:希腊字母版本号, 标记处理那个阶段. 如下:

    1. Base:设计阶段。只有相应的设计没有具体的功能实现。
    2. Alpha:软件的初级版本。基本功能已经实现,但存在较多的BUG。
    3. Bate:相对于Alpha已经有了很大的进步,消除了严重的BUG,但还存在一些潜在的BUG,还需要不断测试。
    4. RELEASE:最终版本,没有明显BUG, 修改会通过SR进行标记。
    5. GAGeneral Availability,正式发布的版本,官方推荐使用此版本
    6. Hoxton:英国伦敦地铁站,第一个字母靠后版本号越大
    7. SR3Service Release,修正版(对RELEASE版本进行修正),SR3表示第3个正式版本
    8. M1Milestones,里程碑版本

当然后还有很多,我这里只是就本篇文章中出现的一些版本,其他的自行百度

各位在选择的时候, 可以选择符合自己当时最新的稳定版本.

一定要注意版本, 不然版本不兼容会出现很多问题

尽量不当小白鼠, 一些莫名其妙的BUG可能会让你很头疼

更多推荐