Springboot Cloud 2020年后 版本选择

2020年开始 SpringBoot官方强烈建议 SpringBoot版本升级到2.0+

2.0+版本改进例如:起步JDK版本为 JDK8+ 以上
在这里插入图片描述
具体的变更说明请看:
Spring Boot 2.0发行说明.

SpringBoot版本由数字发布,例如2.2.0 SpringCloud版本由伦敦地铁站名称命名并以首字母依次排序发布,截止目前已经发布到Hoxton.SR7版本
在这里插入图片描述

SpringBoot版本和SpringCloud版本之间存在冲突
技术选型的时候要极其注意 例如
要用SpringCloud Hoxton版本,
SpringBoot版本必须>=2.2.0.M4 and <2.2.5.BUILD-SNAPSHOT
在这里插入图片描述

### Spring Boot、Spring Cloud 和 Spring Cloud Alibaba 的版本兼容性 对于不同框架间的版本匹配,以下是基于现有资料整理的版本兼容性对照表: | Spring Boot | Spring Cloud | Spring Cloud Alibaba | |--|----------------------| | 2.1.x | Greenwich | 2.1.x | | 2.2.x | Hoxton | 2.2.x | | 2.3.x | Hoxton (SR系列) | 2.2.x | | 2.4.x | 2020.0.x | 2.2.x | | 2.5.x | 2020.0.x | 2.2.x | | 2.6.x | 2021.0.x | 2021.0.x | 从表格可以看出,在某些情况下,多个次要版本的 Spring Boot 可能会支持同一个主要版本的 Spring Cloud 或者 Spring Cloud Alibaba。 自2021年起,Spring Cloud Alibaba 版本命名方式进行了调整。新的命名规则为前三位代表所适配的 Spring Cloud 主要版本号,第四位表示该组合下的迭代次数。例如,针对 Spring Cloud 2021.0.1 发布的第一个 Spring Cloud Alibaba 版本将是 `2021.0.1.0`[^4]。 为了确保项目的稳定性,建议开发者依据实际需求选择合适的版本组合,并关注官方文档中的最新更新信息来获取最准确的支持情况[^5]。 ```java // 示例代码展示如何配置pom.xml文件以指定特定版本 <dependencyManagement> <dependencies> <!-- 使用BOM管理依赖 --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-dependencies</artifactId> <version>${springboot.version}</version> <type>pom</type> <scope>import</scope> </dependency> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-dependencies</artifactId> <version>${springcloud.version}</version> <type>pom</type> <scope>import</scope> </dependency> <dependency> <groupId>com.alibaba.cloud</groupId> <artifactId>spring-cloud-alibaba-dependencies</artifactId> <version>${springcloudalibaba.version}</version> <type>pom</type> <scope>import</scope> </dependency> </dependencies> </dependencyManagement> ```
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值