Skip to content

Spring Cloud Tencent 版本管理

Haotian Zhang edited this page Apr 25, 2024 · 171 revisions

目录

Maven Repository 页面

Mvn repository

版本号规则说明

规则

SCT 版本号由两部分组成:

  • {SCT 自身版本}-{对应的 Spring Cloud 版本}

说明

  • SCT 自身版本号在各个 Spring Cloud 系列版本之间功能对齐,例如 1.8.1-Hoxton.SR121.8.1-2022.0.0-RC2 ,SCT 版本号都是 1.8.1,功能完全对齐,只是对应的 Spring Cloud 版本不同。

  • 1.8.1-Hoxton.SR12 对应 Spring Cloud Hoxton.SR12 版本,而 1.8.1-2022.0.0-RC2 对应的是 2022.0.0-RC2 版本。

设计初衷

  • Spring CloudSpring BootSpring Framework 版本之间有严格的兼容性要求。所以在版本号中引入 Spring Cloud 版本是为了一眼就能识别 Spring Cloud 版本,便于开发者引入正确的版本。
  • SCT 自身版本号在各个 Spring Cloud 系列中严格一致,这样开发者在升级 Spring Cloud 版本时,能够清晰明了升级对应的 SCT 版本号。

最佳实践

开发者应对照组件兼容性列表,根据自身应用的 Spring Boot & Spring Framework 版本选择兼容的 Spring Cloud 版本,再选择推荐的 SCT 版本。

2023 系列

引入版本

如果您想使用 Spring Cloud Tencent 微服务开发套件,您可以直接依赖以下 bom,即在 pom.xml 的 中添加如下代码。后续使用 starter 下的依赖无需带版本号即可引入。

<dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>com.tencent.cloud</groupId>
            <artifactId>spring-cloud-tencent-dependencies</artifactId>
            <version>1.13.1-2023.0.0</version>
            <type>pom</type>
            <scope>import</scope>
        </dependency>
    </dependencies>
</dependencyManagement>

注意:由于 Spring Cloud 2023 对于 bootstrap.ymlbootstrap.properties 的限制,不再默认引入如下依赖。如您的项目将配置存放在 bootstrap.ymlbootstrap.properties 内,必须引入如下依赖:

<dependency>
    <groupId>org.springframework.cloud</groupId>
    <artifactId>spring-cloud-starter-bootstrap</artifactId>
</dependency>

版本列表

Spring Cloud Tencent 版本 支持 Spring Boot 版本 Spring Cloud 版本 Spring Boot 版本 Spring Framework 版本 版本发布说明
1.13.1-2023.0.0(推荐) >=3.2.0 2023.0.0 3.2.3 6.1.4 Release Note

组件兼容性

  • JDK 17 +
  • Spring Framework 6.1
  • Spring Boot 3.2

2022 系列

引入版本

如果您想使用 Spring Cloud Tencent 微服务开发套件,您可以直接依赖以下 bom,即在 pom.xml 的 中添加如下代码。后续使用 starter 下的依赖无需带版本号即可引入。

<dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>com.tencent.cloud</groupId>
            <artifactId>spring-cloud-tencent-dependencies</artifactId>
            <version>1.13.2-2022.0.4</version>
            <type>pom</type>
            <scope>import</scope>
        </dependency>
    </dependencies>
</dependencyManagement>

注意:由于 Spring Cloud 2022 对于 bootstrap.ymlbootstrap.properties 的限制,不再默认引入如下依赖。如您的项目将配置存放在 bootstrap.ymlbootstrap.properties 内,必须引入如下依赖:

<dependency>
    <groupId>org.springframework.cloud</groupId>
    <artifactId>spring-cloud-starter-bootstrap</artifactId>
</dependency>

版本列表

Spring Cloud Tencent 版本 支持 Spring Boot 版本 Spring Cloud 版本 Spring Boot 版本 Spring Framework 版本 版本发布说明
1.13.2-2022.0.4(推荐) >=3.0.0 2022.0.4 3.1.7 6.0.16 Release Note
1.12.4-2022.0.4 >=3.0.0 2022.0.4 3.1.2 6.0.11 Release Note
1.11.9-2022.0.1 >=3.0.0 2022.0.1 3.0.4 6.0.7 Release Note
1.10.3-2022.0.1 >=3.0.0 2022.0.1 3.0.4 6.0.7 Release Note
1.9.0-2022.0.1 >=3.0.0 2022.0.1 3.0.2 6.0.4 Release Note
1.8.5-2022.0.1 >=3.0.0 2022.0.1 3.0.2 6.0.4 Release Note

组件兼容性

  • JDK 17 +
  • Spring Framework 6.0
  • Spring Boot 3.0

2021 系列

引入版本

如果您想使用 Spring Cloud Tencent 微服务开发套件,您可以直接依赖以下 bom,即在 pom.xml 的 中添加如下代码。后续使用 starter 下的依赖无需带版本号即可引入。

<dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>com.tencent.cloud</groupId>
            <artifactId>spring-cloud-tencent-dependencies</artifactId>
            <version>1.13.2-2021.0.9</version>
            <type>pom</type>
            <scope>import</scope>
        </dependency>
    </dependencies>
</dependencyManagement>

注意:由于 Spring Cloud 2021 对于 bootstrap.ymlbootstrap.properties 的限制,不再默认引入如下依赖。如您的项目将配置存放在 bootstrap.ymlbootstrap.properties 内,必须引入如下依赖:

<dependency>
    <groupId>org.springframework.cloud</groupId>
    <artifactId>spring-cloud-starter-bootstrap</artifactId>
</dependency>

版本列表

Spring Cloud Tencent 版本 支持 Spring Boot 版本 Spring Cloud 版本 Spring Boot 版本 Spring Framework 版本 版本发布说明
1.13.2-2021.0.9(推荐) >=2.6.1 & <3.0.0-M1 2021.0.9 2.7.18 5.3.31 Release Note
1.12.4-2021.0.8 >=2.6.1 & <3.0.0-M1 2021.0.8 2.6.15 5.3.29 Release Note
1.11.9-2021.0.6 >=2.6.1 & <3.0.0-M1 2021.0.6 2.6.14 5.3.25 Release Note
1.10.3-2021.0.6 >=2.6.1 & <3.0.0-M1 2021.0.6 2.6.14 5.3.25 Release Note
1.9.1-2021.0.5 >=2.6.1 & <3.0.0-M1 2021.0.5 2.6.14 5.3.25 Release Note
1.8.3-2021.0.3 >=2.6.1 & <3.0.0-M1 2021.0.3 2.6.9 5.3.21 Release Note
1.7.0-2021.0.3 >=2.6.1 & <3.0.0-M1 2021.0.3 2.6.9 5.3.21 Release Note
1.6.0-2021.0.3 >=2.6.1 & <3.0.0-M1 2021.0.3 2.6.9 5.3.21 Release Note
1.5.3-2021.0.2 >=2.6.1 & <3.0.0-M1 2021.0.2 2.6.7 5.3.21 Release Note

组件兼容性

  • Spring Boot 2.6.x
  • JDK 8-19

2020 系列

引入版本

如果您想使用 Spring Cloud Tencent 微服务开发套件,您可以直接依赖以下 bom,即在 pom.xml 的 中添加如下代码。后续使用 starter 下的依赖无需带版本号即可引入。

<dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>com.tencent.cloud</groupId>
            <artifactId>spring-cloud-tencent-dependencies</artifactId>
            <version>1.13.2-2020.0.6</version>
            <type>pom</type>
            <scope>import</scope>
        </dependency>
    </dependencies>
</dependencyManagement>

版本列表

Spring Cloud Tencent 版本 支持 Spring Boot 版本 Spring Cloud 版本 Spring Boot 版本 Spring Framework 版本 版本发布说明
1.13.2-2020.0.6(推荐) >=2.4.0.M1 & <2.6.0-M1 2020.0.6 2.4.13 5.3.25 Release Note
1.12.5-2020.0.6 >=2.4.0.M1 & <2.6.0-M1 2020.0.6 2.4.13 5.3.25 Release Note
1.11.9-2020.0.6 >=2.4.0.M1 & <2.6.0-M1 2020.0.6 2.4.13 5.3.25 Release Note
1.10.3-2020.0.6 >=2.4.0.M1 & <2.6.0-M1 2020.0.6 2.4.13 5.3.25 Release Note
1.9.1-2020.0.5 >=2.4.0.M1 & <2.6.0-M1 2020.0.5 2.4.13 5.3.21 Release Note
1.8.7-2020.0.5 >=2.4.0.M1 & <2.6.0-M1 2020.0.5 2.4.13 5.3.21 Release Note
1.7.0-2020.0.5 >=2.4.0.M1 & <2.6.0-M1 2020.0.5 2.4.13 5.3.21 Release Note
1.6.0-2020.0.5 >=2.4.0.M1 & <2.6.0-M1 2020.0.5 2.4.13 5.3.21 Release Note
1.5.3-2020.0.5 >=2.4.0.M1 & <2.6.0-M1 2020.0.5 2.4.13 5.3.21 Release Note

组件兼容性

  • Spring Boot 2.4.x, 2.5.x (Starting with 2020.0.3)
  • JDK 8-15

Hoxton 系列

引入版本

如果您想使用 Spring Cloud Tencent 微服务开发套件,您可以直接依赖以下 bom,即在 pom.xml 的 中添加如下代码。后续使用 starter 下的依赖无需带版本号即可引入。

<dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>com.tencent.cloud</groupId>
            <artifactId>spring-cloud-tencent-dependencies</artifactId>
            <version>1.13.2-Hoxton.SR12</version>
            <type>pom</type>
            <scope>import</scope>
        </dependency>
    </dependencies>
</dependencyManagement>

版本列表

Spring Cloud Tencent 版本 支持 Spring Boot 版本 Spring Cloud 版本 Spring Boot 版本 Spring Framework 版本 版本发布说明
1.13.2-Hoxton.SR12(推荐) >=2.2.0.RELEASE & <2.4.0.M1 Hoxton.SR12 2.3.12.RELEASE 5.2.25.RELEASE Release Note
1.12.4-Hoxton.SR12 >=2.2.0.RELEASE & <2.4.0.M1 Hoxton.SR12 2.3.12.RELEASE 5.2.25.RELEASE Release Note
1.11.10-Hoxton.SR12 >=2.2.0.RELEASE & <2.4.0.M1 Hoxton.SR12 2.3.12.RELEASE 5.2.22.RELEASE Release Note
1.9.1-Hoxton.SR12 >=2.2.0.RELEASE & <2.4.0.M1 Hoxton.SR12 2.3.12.RELEASE 5.2.22.RELEASE Release Note
1.8.4-Hoxton.SR12 >=2.2.0.RELEASE & <2.4.0.M1 Hoxton.SR12 2.3.12.RELEASE 5.2.22.RELEASE Release Note
1.7.1-Hoxton.SR12 >=2.2.0.RELEASE & <2.4.0.M1 Hoxton.SR12 2.3.12.RELEASE 5.2.22.RELEASE Release Note
1.6.0-Hoxton.SR12 >=2.2.0.RELEASE & <2.4.0.M1 Hoxton.SR12 2.3.12.RELEASE 5.2.22.RELEASE Release Note
1.5.3-Hoxton.SR9 >=2.2.0.RELEASE & <2.4.0.M1 Hoxton.SR9 2.3.2.RELEASE 5.2.15.RELEASE Release Note

组件兼容性

  • Spring Boot 2.2.x, 2.3.x (Starting with SR5)
  • JDK 8-15

Greenwich 系列(已停止维护)

引入版本

如果您想使用 Spring Cloud Tencent 微服务开发套件,您可以直接依赖以下 bom,即在 pom.xml 的 中添加如下代码。后续使用 starter 下的依赖无需带版本号即可引入。

<dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>com.tencent.cloud</groupId>
            <artifactId>spring-cloud-tencent-dependencies</artifactId>
            <version>1.5.4-Greenwich.SR6</version>
            <type>pom</type>
            <scope>import</scope>
        </dependency>
    </dependencies>
</dependencyManagement>

版本列表

Spring Cloud Tencent 版本 Spring Cloud 版本 Spring Boot 版本 Spring Framework版本 版本发布说明
1.5.4-Greenwich.SR6(推荐) Greenwich.SR6 2.1.13.RELEASE 5.1.14.RELEASE Release Note

组件兼容性

  • Spring Boot 2.1.x
  • JDK 8-12
Clone this wiki locally