Spring Cloud 最近版本更新:
- Spring Cloud 2021.0.0 發布
- Spring Cloud 2020.0.4 發布
號外,號外,Spring Cloud 2020.0.5 發布了!
現在在 Maven 倉庫中已經可用了:

Maven 依賴給大家奉上:
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>2020.0.5</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
Spring Cloud 2021.0.0 剛發布不久,2020.0.5 這條版本線又發布新版了,
來看下最新的 Spring Cloud 版本情況:

堆疊長寫文時官方首頁還沒更新,不過沒關系,可以看到,Spring Cloud 現在維護了三條線:
- 2021.0.0
- 2020.0.5
- Hoxton.SR12
關于版本線的命名是不是很奇怪?
其實 Spring Cloud 最新的版本命名方式早已經變更了,以后就是 2020.x 這種命名方式了,不清楚的可以看下堆疊長之前寫的兩篇文章:
- Spring Cloud 2020.0.0 正式發布,全新顛覆性版本!
- Spring Cloud 2020 版本重大變革,更好的命名方式!
另外,Spring Cloud 系列教程全部整理好了,微信搜索關注Java技術堆疊,在選單中進行閱讀,
Spring Cloud 2020.0.5
來看下 Spring Cloud 2020.0.5 更新了啥!
以下模塊得到了更新:
| Module | Version |
|---|---|
| Spring Cloud Netflix | 3.0.5 |
| Spring Cloud Config | 3.0.6 |
| Spring Cloud Sleuth | 3.0.5 |
| Spring Cloud Gateway | 3.0.6 |
| Spring Cloud Cloudfoundry | 3.0.3 |
| Spring Cloud Contract | 3.0.5 |
| Spring Cloud Kubernetes | 2.0.5 |
| Spring Cloud Zookeeper | 3.0.5 |
| Spring Cloud Cli | 3.0.4 |
| Spring Cloud Task | 2.3.5 |
| Spring Cloud Starter Build | 2020.0.5 |
| Spring Cloud Openfeign | 3.0.6 |
| Spring Cloud Vault | 3.0.5 |
| Spring Cloud Commons | 3.0.5 |
主要更新內容如下:
Spring Cloud Netflix
- Netflix/Eureka 版本升級至 1.10.17
Spring Cloud Config
- Git 倉庫支持使用 HTTPS 代理
- 支持 AWS、Redis、CredHub 倉庫
Spring Cloud Gateway
度量增強:
- 度量不包括 Netty 連接資訊
- 添加度量以包含路徑作為網關度量標記
- 添加度量以跟蹤網關路由定義計數
Spring Cloud Kubernetes
- 為 Kubernetes API 客戶端指定用戶代理
- 允許不附加 activeProfile
- Kubernetes Java 客戶端升級到 11.0.3
Spring Cloud Openfeign
- 在
PageJacksonModule模塊中添加了對 size = 0 的支持
Spring Cloud Sleuth
- 支持:Cache Executor wrappers
Spring Cloud Vault
- 支持來自檔案的 TOKEN 認證 (~/.vault_token)
- 支持在
VaultConfigDataLoader中使用spring.cloud.vault.reactive.enabled屬性 - 支持對多資料庫的密鑰生成
總結
Spring Cloud 2020.0.5 是一個小版本,這可能是 2021 年度發布的最后一個版本了,個人建議沒必要升級,除非這些新特性對你真的有需要,
最后來看下 Spring Cloud 兼容的 Spring Boot 版本情況:
| 版本線 | 生命周期 | 兼容 Spring Boot 版本 |
|---|---|---|
| 2021.x | 停止時間未知 | Spring Boot 2.6 |
| 2020.x | 停止時間未知 | Spring Boot 2.4.x, 2.5.x (2020.0.3+) |
| Hoxton | 2022/02/28 | Spring Boot 2.2.x, 2.3.x (SR5+) |
| Greenwich | 已停止維護 | Spring Boot 2.1.x |
| Finchley | 已停止維護 | Spring Boot 2.0.x |
| Edgware | 已停止維護 | Spring Boot 1.5.x |
| Dalston | 已停止維護 | Spring Boot 1.5.x |
需要注意的是:
1)2020 和 2021 版本支持的 Spring Boot 最新版本是不同的,2021 版本最新支持 Spring Boot 2.6,2020 版本最新只支持 Spring Boot 2.5,注意兼容性;
2)Spring Cloud Dalston, Edgware, Finchley, Greenwich 這幾個版本已經徹底結束生命周期了,官方不再提供維護支持,別再用了;
3)Spring Cloud Hoxton 這個版本在 2021/06/30 也停止維護了(其對應的 Spring Boot 2.2.x 版本也停止維護了),但是期間如果 Hoxton 出現重大 bug 或者安全漏洞,補丁修復截止時間會延長到 2022/02/28,
學 Spring Cloud 必須先掌握 Spring Boot,如果你還沒用過 Spring Boot,今天我就送你一份 《Spring Boot 學習筆記》這個很全了,包括底層實作原理及代碼實戰,非常齊全,助你快速打通 Spring Boot 的各個環節,
Spring Boot 理論和實戰原始碼倉庫:
https://github.com/javastacks/spring-boot-best-practice
你們用的哪個 Spring Cloud 版本呢?歡迎投票!
好了,今天的分享就到這里了,如果你想關注和學習最新、最主流的 Java 技術,可以持續關注公眾號Java技術堆疊,公眾號第一時間推送,
著作權宣告: 本文系公眾號 "Java技術堆疊" 原創,原創實屬不易,轉載、參考本文內容請注明出處,抄襲者一律舉報+投訴,并保留追究其法律責任的權利,
近期熱文推薦:
1.1,000+ 道 Java面試題及答案整理(2021最新版)
2.勁爆!Java 協程要來了,,,
3.玩大了!Log4j 2.x 再爆雷,,,
4.Spring Boot 2.6 正式發布,一大波新特性,,
5.《Java開發手冊(嵩山版)》最新發布,速速下載!
覺得不錯,別忘了隨手點贊+轉發哦!
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/387693.html
標籤:Java
上一篇:Redis最常用的使用場景
