Spring Boot,Spring Cloud,Spring Cloud Alibaba 版本选择说明以及整理概括

前言

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

Spring Boot 版本

如何选择版本:html

  若是说你的项目只用到 Spring Boot 那么能够直接选择最新的稳定版,如上图的 2.1.7.RELEASE,RELEASE 表明稳定版。
  若是说你的项目用到了 Spring Cloud 那么你的版本就须要根据 Spring Cloud 去选择Spring Boot版本,具体看下面git

Spring Cloud 版本

  版本查询:https://mvnrepository.com/artifact/org.springframework.cloud/spring-cloud-dependenciesgithub

版本简介:

  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.htmlspring

 

兼容性:

   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 点开能够找到源码json

如何选择版本:maven

  我的建议:根据本身 Spring Cloud 直接使用官方推荐的版本spring-boot

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

 

至于配置也能够直接在这查看:官方版本说明测试

 

原文连接:url

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

相关文章
相关标签/搜索