2-Spring Cloud alibaba版本对应
Posted companion
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了2-Spring Cloud alibaba版本对应相关的知识,希望对你有一定的参考价值。
目前最新版本:Spring Cloud Alibaba 2.2.1
Spring Cloud Alibaba 2.1.0 RELEASE对应Spring Cloud Greenwich版本
Spring Cloud Alibaba 2.2.0 RELEASE对应Spring Cloud Hoxton.RELEASE版本
Spring Cloud Alibaba 2.2.1 RELEASE对应Spring Cloud Hoxton.SR3版本
Spring Boot,Spring Cloud,Spring Cloud Alibaba 版本选择说明以及整理归纳
前言
2.帮助那些不知道如何选择版本的朋友进行指引,而不是一味的跟风网上的版本,照抄。
Spring Boot 版本
![](https://image.cha138.com/20210524/e65a640d20ca41c7be99693faf1e9fd1.jpg)
![](https://image.cha138.com/20210524/c9f91f3ceb92494cb9ae5bd611b3a874.jpg)
如何选择版本:
如果说你的项目只用到 Spring Boot 那么可以直接选择最新的稳定版,如上图的 2.1.7.RELEASE,RELEASE 代表稳定版。
如果说你的项目用到了 Spring Cloud 那么你的版本就需要根据 Spring Cloud 去选择Spring Boot版本,具体看下面
Spring Cloud 版本
版本查询:https://mvnrepository.com/artifact/org.springframework.cloud/spring-cloud-dependencies
版本简介:
由于子项目也维护着自己的版本号,Spring Cloud 采用了这种版本命名方式,从而避免与子项目的版本混淆。
Angel、Brixton、Camden 等都是伦敦地铁站的名称,它们按照字母顺序发行,我们可将其理解为主版本的演进。
SR表示 “Service Release”,一般表示Bug修复,在SR版本发布之前,会先发布⼀个 Release 版本,例如 Finchley RELEASE。
举例:
Finchley.RELEASE 这个是 Finchley 最早出的稳定版本
如图:
如何选择版本:
Spring Cloud版本演进计划:则是官方后续的发布计划,也可以根据这个看看官方是否后续还有对于版本的修复计划
附带下资料:
Spring Boot | Spring Cloud |
1.2.x | Angel版本 |
1.3.x | Brixton版本 |
1.4.x stripes | Camden版本 |
1.5.x | Dalston版本、Edgware版本 |
2.0.x | Finchley版本 |
2.1.x | Greenwich版本 |
2.2.x | Hoxton版本 |
更详细的版本对应可以看下面的转载链接
转载:https://www.cnblogs.com/zhuwenjoyce/p/10261079.html
兼容性:
Brixton版本基于Spring Boot 1.3.x构建,也可使用1.4.x进行测试,与Spring Boot 1.2.x不兼容。
Camden版本基于Spring Boot 1.4.x构建,也可使用1.5.x进行测试。
Dalston/Edgware版本基于Spring Boot 1.5.x构建,不兼容Spring Boot 2.0.x;
Finchley版本基于Spring Boot 2.0.x构建,不兼容Spring Boot 1.x;
兼容性可参考:https://spring.io/projects/spring-cloud#overview
Spring Cloud Alibaba 版本
在这里也可以看到更新的内容,以及其他版本向下拉就有了
![](https://image.cha138.com/20210524/be65d9aaa62e4e9f80545f9d05a9abeb.jpg)
Assets 点开可以找到源码
如何选择版本:
个人建议:根据自己 Spring Cloud 直接使用官方推荐的版本
Spring Cloud Version | Spring Cloud Alibaba Version | Spring Boot Version |
Spring Cloud Greenwich | 2.1.0.RELEASE | 2.1.X.RELEASE |
Spring Cloud Finchley | 2.0.0.RELEASE | 2.0.X.RELEASE |
Spring Cloud Edgware | 2.0.0.RELEASE | 1.5.X.RELEASE |
至于配置也可以直接在这查看:官方版本说明
原文链接:
以上是关于2-Spring Cloud alibaba版本对应的主要内容,如果未能解决你的问题,请参考以下文章
2.Spring Cloud Alibaba实现负载均衡-Ribbon
Spring Cloud Alibaba Sentinel对RestTemplate的支持
Spring Cloud Alibaba - 02 SpringCloud SpringCloud Alibaba SpringBoot的生产版本选择