目录
为什么需要版本对应
SpringBoot需与SpringCloud版本对应,否则可能会出现意料之外的错误,比如使用Eureka后找不到服务的地址,jar包导入失败。
版本对应关系
Spring Cloud | Spring Boot |
Angel版本 | 兼容Spring Boot 1.2.x |
Brixton版本 | 兼容Spring Boot 1.3.x,也兼容Spring Boot 1.4.x |
Camden版本 | 兼容Spring Boot 1.4.x,也兼容Spring Boot 1.5.x |
Dalston版本、Edgware版本 | 兼容Spring Boot 1.5.x,不兼容Spring Boot 2.0.x |
Finchley版本 | 兼容Spring Boot 2.0.x,不兼容Spring Boot 1.5.x |
Greenwich版本 | 兼容Spring Boot 2.1.x |
Spring Boot | Spring Cloud |
1.5.2.RELEASE | Dalston.RC1 |
1.5.9.RELEASE | Edgware.RELEASE |
2.0.2.RELEASE | Finchley.BUILD-SNAPSHOT |
2.0.3.RELEASE | Finchley.RELEASE |
版本说明
从Angel到Greenwich版本,官方说明是这些版本号的单词来自于英国伦敦的地铁站站名。
那么为什么要用单词而不是数字类型的版本号呢? 因为Spring Cloud包含了一系列的子系统,Spring Cloud Config,Spring Cloud Netflix,Spring Cloud Bus等,为了防止与这些子系统的版本号混淆,Spring Cloud的版本号全部使用英文单词。
F版本
F版本(Finchley)是个绝对的大版本,几乎所有组件,全部同步变更版本号为2.x。
小版本
Spring Cloud 小版本分为:
- SNAPSHOT: 快照版本,随时可能修改
- M: MileStone,M1表示第1个里程碑版本,一般同时标注PRE,表示预览版版
- SR: Service Release,SR1表示第1个正式版本,一般同时标注GA:(GenerallyAvailable),表示稳定版本
关于spring cloud1.x版本和2.x版本区别
spring cloud各个版本之间是有所区别的,比如在SpringCloud中,1.X和2.X版本在pom.xml中引入的jar包名字都不一样,比如有的叫spirng-cloud-starter-hystrix 有的叫spring-cloud-netflix-hystrix,维护起来会比较困难。
参考资料地址
https://blog.youkuaiyun.com/qq32933432/article/details/89375630