陈同学
微服务
Accelerator
About
# Spring Cloud 版本、Spring Boot适配及技术落地记录 最近准备升级 Spring Cloud 版本,整理了 Spring Cloud 各版本资料,包含和 Spring Boot、Spring Cloud Alibaba 适配情况,并收录了落地时的技术组件。 ## Spring Cloud 大版本列表 > [Spring Cloud Release Notes](https://github.com/spring-projects/spring-cloud/wiki) > > [官方 Spring Cloud 与 Spring Boot 的适配文档](https://spring.io/projects/spring-cloud#overview) > > Spring Cloud 以英国伦敦地铁站命名版本,组件采用数字版本。 | 大版本 | 中文 | RELEASE版本 | 主要组件版本 | 发布时间 | 重要组件(省略Spring Cloud 前缀) | Spring Boot版本 | Spring Cloud Alibaba 版本 | | ------------------------------------------------------------ | ---------- | ----------------- | ------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ----------------------------- | ------------------------- | | [Angel](https://github.com/spring-projects/spring-cloud/wiki/Spring-Cloud-Angel-Release-Notes) | 安吉尔 | Angel.SR3 | 1.0.2 | [2015.6.26](https://spring.io/blog/2015/06/26/spring-cloud-service-release-angel-sr3) | Config、Netflix(Eureka, Hystrix, Zuul...)、Security、Starters | 1.2.x | | | [Brixton](https://github.com/spring-projects/spring-cloud/wiki/Spring-Cloud-Brixton-Release-Notes) | 布里克斯顿 | Brixton.RELEASE | 1.0.0&1.1.0 | [2016.5.11](https://spring.io/blog/2016/05/11/spring-cloud-brixton-release-is-available) | Zookeeper、Consul、Sleuth | 1.3.x,Spring 4.2.x | | | [Camden](https://github.com/spring-projects/spring-cloud/wiki/Spring-Cloud-Camden-Release-Notes) | 卡姆登 | Camden.RELEASE | 1.1.x、1.2.x | [2016.9.26](https://spring.io/blog/2016/09/26/spring-cloud-camden-release-and-brixton-sr6-are-available) | | 1.4.x | | | [Dalston](https://github.com/spring-projects/spring-cloud/wiki/Spring-Cloud-Dalston-Release-Notes) | 达尔斯顿 | Dalston.RELEASE | 1.2.x、1.3.x | [2017.4.12](https://spring.io/blog/2017/04/12/spring-cloud-dalston-released) | | 1.5.x | | | [Edgware](https://github.com/spring-projects/spring-cloud/wiki/Spring-Cloud-Edgware-Release-Notes) | 埃奇韦尔 | Edgware.RELEASE | 1.3.x、1.4.x | [2017.11.27](https://spring.io/blog/2017/11/27/spring-cloud-edgware-release-available) | | 1.5.x | | | [Finchley](https://github.com/spring-projects/spring-cloud/wiki/Spring-Cloud-Finchley-Release-Notes) | 芬奇利 | Finchley.RELEASE | 2.0.x | [2018.6.19](https://spring.io/blog/2018/06/19/spring-cloud-finchley-release-is-available) | Openfeign、Gateway | 2.0.x,不支持1.x.y,最低Java8 | | | [Greenwich](https://github.com/spring-projects/spring-cloud/wiki/Spring-Cloud-Greenwich-Release-Notes) | 格林威治 | Greenwich.RELEASE | 2.1.x | [2019.1.23](https://spring.io/blog/2019/01/23/spring-cloud-greenwich-release-is-now-available) | Kubernetes | 2.1.x | | | [Hoxton](https://github.com/spring-projects/spring-cloud/wiki/Spring-Cloud-Hoxton-Release-Notes) | 霍顿 | Hoxton.RELEASE | 2.2.x | [2019.11.28](https://spring.io/blog/2019/11/28/spring-cloud-hoxton-released) | | 2.2.x, 2.3.x | | | [Ilford 2020.0.0](https://github.com/spring-cloud/spring-cloud-release/wiki/Spring-Cloud-2020.0-Release-Notes) | 伊尔福德 | 2020.0.0 | 3.0.x | [2020.12.22](https://spring.io/blog/2020/12/22/spring-cloud-2020-0-0-aka-ilford-is-available) | Netflix家族基本全部移除,变更版本命名方式 | 2.4.x, 2.5.x | 2021.1 | | [Jubilee 2021.0.0](https://github.com/spring-cloud/spring-cloud-release/wiki/Spring-Cloud-2021.0-Release-Notes) | 朱必利 | 2021.0.0 | 3.1.x | [2021.12.1](https://spring.io/blog/2021/12/02/spring-cloud-2021-0-0-codename-jubilee-has-been-released) | | 2.6.x | 2021.1 | ## 小版本命名说明 * GA:Generally Available,基本可用版本(Spring Cloud 无GA版本,从M版本开始) * M:MILESTONE 里程碑版本,基于GA做问题修复 * RC:Release Candidate,发布候选版本,仅修复问题,不添加新功能,基本定型 * RELEASE:正式发布版本 * SR:Service Release,优化或Bug修复 ## 版本重要变化说明 ### Edgware 重命名 starters > [Renamed starters](https://github.com/spring-projects/spring-cloud/wiki/Spring-Cloud-Edgware-Release-Notes) | Deprecated | Edgware Starter | | -------------------------------------- | ---------------------------------------------- | | spring-cloud-starter-archaius | spring-cloud-starter-netflix-archaius | | spring-cloud-starter-atlas | spring-cloud-starter-netflix-atlas | | spring-cloud-starter-eureka | spring-cloud-starter-netflix-eureka-client | | spring-cloud-starter-eureka-server | spring-cloud-starter-netflix-eureka-server | | spring-cloud-starter-feign | spring-cloud-starter-openfeign | | spring-cloud-starter-hystrix | spring-cloud-starter-netflix-hystrix | | spring-cloud-starter-hystrix-dashboard | spring-cloud-starter-netflix-hystrix-dashboard | | spring-cloud-starter-ribbon | spring-cloud-starter-netflix-ribbon | | spring-cloud-starter-spectator | spring-cloud-starter-netflix-spectator | | spring-cloud-starter-turbine | spring-cloud-starter-netflix-turbine | | spring-cloud-starter-turbine-amqp | DELETED | | spring-cloud-starter-turbine-stream | spring-cloud-starter-netflix-turbine-stream | | spring-cloud-starter-zuul | spring-cloud-starter-netflix-zuul | ### Greenwich 推荐替换组件 > [Replacements](https://spring.io/blog/2019/01/23/spring-cloud-greenwich-release-is-now-available) | Deprecated | Edgware Starter | | -------------------------- | ------------------------------------------------------------ | | Hystrix | [Resilience4j](https://github.com/resilience4j/resilience4j) | | Hystrix Dashboard / Turbin | Micrometer + Monitoring System | | Ribbon | Spring Cloud Loadbalancer | | Zuul 1 | Spring Cloud Gateway | | Archaius 1 | Spring Boot external config + Spring Cloud Config | ### Ilford 移除Netflix 家族 > [Spring Cloud 2020.0 Release Notes](https://github.com/spring-cloud/spring-cloud-release/wiki/Spring-Cloud-2020.0-Release-Notes) * Netflix 相关组件已全部移除 * Spring Cloud Security 项目完全移除,代码移动到了各个Spring Cloud项目内部 * Spring Cloud Gateway 基于 Spring Cloud LoadBalancer 重构,不再支持 Ribbon * Feign Client 可以使用 Spring Cloud CircuitBreakers 包装 Netflix 被移除的项目如下: ``` spring-cloud-netflix-archaius spring-cloud-netflix-concurrency-limits spring-cloud-netflix-core spring-cloud-netflix-dependencies spring-cloud-netflix-hystrix spring-cloud-netflix-hystrix-contract spring-cloud-netflix-hystrix-dashboard spring-cloud-netflix-hystrix-stream spring-cloud-netflix-ribbon spring-cloud-netflix-sidecar spring-cloud-netflix-turbine spring-cloud-netflix-turbine-stream spring-cloud-netflix-zuul spring-cloud-starter-netflix-archaius spring-cloud-starter-netflix-hystrix spring-cloud-starter-netflix-hystrix-dashboard spring-cloud-starter-netflix-ribbon spring-cloud-starter-netflix-turbine spring-cloud-starter-netflix-turbine-stream spring-cloud-starter-netflix-zuul Support for ribbon, hystrix and zuul was removed across the release train projects. ``` ### Jubilee ## Spring Cloud Alibaba > [Spring Cloud Alibaba](https://spring.io/projects/spring-cloud-alibaba) 版本适配 | Spring Cloud Version | Spring Cloud Alibaba Version | Spring Boot Version | | ---------------------- | ---------------------------- | ------------------- | | Spring Cloud Greenwich | 2.1.x.RELEASE | 2.1.x.RELEASE | | Spring Cloud Finchley | 2.0.x.RELEASE | 2.0.x.RELEASE | | Spring Cloud Edgware | 1.5.x.RELEASE | 1.5.x.RELEASE | ## 落地方案 > 参考 [4 年 46 个版本,一文读懂 Spring Cloud 发展历史](https://mp.weixin.qq.com/s/xmeJsGkL0e8K2u_B5Vo-eQ) 加粗表示已停止维护。 | | 官方 | Spring Cloud Netflix | Spring Cloud Alibaba | Spring Cloud Kubernates | Spring Cloud Zookeeper | 携程 | | ---------- | ---------------------------- | -------------------------- | -------------------- | ----------------------- | ---------------------- | ------ | | 分布式配置 | | **Archaius** | Nacos | ConfigMap | Zookeeper | Appolo | | 服务治理 | | Eureka 1.0、**Eureka 2.0** | Nacos | Api Server | Zookeeper | | | 熔断 | Spring Cloud Circuit Breaker | **Hystrix** | Sentinel | | | | | RPC | OpenFeign、RestTemplate | Feign | Dubbo RPC | | | | | 路由 | Spring Cloud Gateway | Zuul | Dubbo + Servlet | | | | | 负载均衡 | Spring Cloud LoadBalancer | **Ribbon** | Dubbo LB | | | | | 消息总线 | Spring Cloud Bus | | Spring Cloud Bus | | | | | 分布式消息 | Spring Cloud Stream | | Spring Cloud Stream | | | | | 分布式事务 | | | Seata | | | |
本文由
cyj
创作,可自由转载、引用,但需署名作者且注明文章出处。
文章标题:
Spring Cloud 版本、Spring Boot适配及技术落地记录
文章链接:
https://chenyongjun.vip/articles/154
扫码或搜索 cyjrun 关注微信公众号, 结伴学习, 一起努力