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 版本选择说明以及整理归纳

前言

本文的核心目的:
  1.方便自己以后的查找,预览,参考
  2.帮助那些不知道如何选择版本的朋友进行指引,而不是一味的跟风网上的版本,照抄。

Spring Boot 版本

如何选择版本:

  如果说你的项目只用到 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 是⼀个综合项目,它包含很多的子项目。
由于子项目也维护着自己的版本号,Spring Cloud 采用了这种版本命名方式,从而避免与子项目的版本混淆。
Angel、Brixton、Camden 等都是伦敦地铁站的名称,它们按照字母顺序发行,我们可将其理解为主版本的演进。
SR表示 “Service Release”,一般表示Bug修复,在SR版本发布之前,会先发布⼀个 Release 版本,例如 Finchley RELEASE。
举例:
  Finchley.SR4 这个就表示 Finchley 版本的第四次 Bug 修复版本
  Finchley.RELEASE 这个是 Finchley 最早出的稳定版本
如图:

如何选择版本:

  就以上的版本,如果让我选择,我会选 Finchley.SR4 版本
  可能你会疑惑,为什么不选最新的经过 2 次 Bug 修复的 Greenwich.SR2 呢?因为 Finchley 版本经历了四次修复后版本趋于稳定,不会出现一些明显的 Bug,而 Greenwich 经历了 2次 Bug 修复,你并不知道官方是否对于这个版本都修复完了,毕竟 H 的版本还没出,所以万一使用 Greenwich 版本在开发过程中遇到了 Bug 无法解决就有点得不偿失,因此我选择 Finchley.SR4 版本
 
  Spring Cloud版本发布记录:是官方发布的历史记录
  Spring Cloud版本演进计划:则是官方后续的发布计划,也可以根据这个看看官方是否后续还有对于版本的修复计划
附带下资料:
 
如何根据 Spring Cloud 选择兼容的 Spring Boot 版本https://start.spring.io/actuator/info 下载后要解析json数据
大版本对应:
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

 

兼容性:

   Angel版本基于Spring Boot 1.2.x构建,在一些场景下,与Spring Boot 1.3.x及以上版本不兼容。
   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 版本

版本查询:
  也可以直接在阿里仓库中搜索 spring-cloud-alibaba-dependencies 也可以查到最新的版本
附云仓库链接:阿里仓库
如图,现在最新的版本是 2.1.0.RELEASE
在这里也可以看到更新的内容,以及其他版本向下拉就有了

 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

 

至于配置也可以直接在这查看:官方版本说明

 

原文链接:

  https://blog.csdn.net/qq_37143673/article/details/99292705

以上是关于2-Spring Cloud alibaba版本对应的主要内容,如果未能解决你的问题,请参考以下文章

2.Spring Cloud Alibaba实现负载均衡-Ribbon

Spring Cloud Alibaba Sentinel对RestTemplate的支持

Spring Cloud Alibaba:版本对应关系

Spring Cloud Alibaba - 02 SpringCloud SpringCloud Alibaba SpringBoot的生产版本选择

Spring Boot,Spring Cloud,Spring Cloud Alibaba 版本选择说明以及整理归纳

spring cloud alibaba springboot nacos 版本对应