-
Notifications
You must be signed in to change notification settings - Fork 512
Spring Cloud Tencent 版本管理
规则
SCT 版本号由两部分组成:
- {SCT 自身版本}-{对应的 Spring Cloud 版本}
说明
-
SCT 自身版本号在各个
Spring Cloud系列版本之间功能对齐,例如1.8.1-Hoxton.SR12和1.8.1-2022.0.0-RC2,SCT 版本号都是1.8.1,功能完全对齐,只是对应的Spring Cloud版本不同。 -
1.8.1-Hoxton.SR12对应Spring CloudHoxton.SR12版本,而1.8.1-2022.0.0-RC2对应的是2022.0.0-RC2版本。
设计初衷
-
Spring Cloud、Spring Boot、Spring Framework版本之间有严格的兼容性要求。所以在版本号中引入Spring Cloud版本是为了一眼就能识别Spring Cloud版本,便于开发者引入正确的版本。 - SCT 自身版本号在各个
Spring Cloud系列中严格一致,这样开发者在升级Spring Cloud版本时,能够清晰明了升级对应的 SCT 版本号。
最佳实践
开发者应对照组件兼容性列表,根据自身应用的 Spring Boot & Spring Framework 版本选择兼容的 Spring Cloud 版本,再选择推荐的 SCT 版本。
- 主干版本:
Spring Cloud Tencent会将次新大版本(包含)及往前的2个大版本(共3个大版本)作为主干版本,所有规划的功能会在主干版本上进行支持。当前主干版本为2022系列、2021系列、2020系列。 - CherryPick版本:
Spring Cloud Tencent会将最新大版本(包含)及往前的4个大版本,除去主干版本外,作为CherryPick版本。社区可按照issue上录入的需求,将主干版本上支持的功能,回合到CherryPick版本中。当前CherryPick版本为2023系列、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-2023.0.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>注意:由于 Spring Cloud 2023 对于 bootstrap.yml 和 bootstrap.properties 的限制,不再默认引入如下依赖。如您的项目将配置存放在 bootstrap.yml 或 bootstrap.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-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
如果您想使用 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.yml 和 bootstrap.properties 的限制,不再默认引入如下依赖。如您的项目将配置存放在 bootstrap.yml 或 bootstrap.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
如果您想使用 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.yml 和 bootstrap.properties 的限制,不再默认引入如下依赖。如您的项目将配置存放在 bootstrap.yml 或 bootstrap.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
如果您想使用 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
如果您想使用 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
如果您想使用 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
- 您在使用过程中遇到任何问题,请提 Issue 或者加入我们的开发者群告诉我们,我们会在第一时间反馈
- Spring Cloud Tencent 社区期待您的加入,一个 Star、PR 都是对我们最大的支持
- 项目介绍
- 使用指南
- 最佳实践
- 开发文档
- 学习资料