Spring Cloud 2020.0.0-M1 釋出

釋出 | Spencer Gibb | 2020 年 4 月 17 日 | ...

我代表社群榮幸地宣佈,Spring Cloud 2020.0.0(代號:Ilford)Release Train 的里程碑版本 1 (M1) 今天釋出了。此版本可在 Spring Milestone 倉庫中找到。您可以檢視 2020 年的釋出說明了解更多資訊

2020 Release Train 的顯著變化

我們更改了 Release Train 的版本命名方案。現在,我們遵循日曆版本控制(Calendar Versioning),簡稱 calver。我們將遵循 YYYY.MINOR.MICRO方案,其中 MINOR 是每年從零開始遞增的數字。MICRO 段對應於以前使用的字尾:.0 類似於 .RELEASE.2 類似於 .SR2。預釋出版本的字尾分隔符也將從 . 更改為 -,例如 2020.0.0-M12020.0.0-RC2。我們也將停止使用 BUILD- 字首作為快照版本 -- 例如 2020.0.0-SNAPSHOT

我們將繼續使用倫敦地鐵站的名稱作為代號。當前的代號是 Ilford。這些名稱將不再用於釋出到 Maven 倉庫的版本中。

Spring Cloud AWS 和 Spring Cloud GCP 不再是 Release Train 的一部分。只要 Hoxton 版本仍受支援(至少到 2021 年 6 月),它們將繼續是 Hoxton 的一部分。Spring Cloud GCP 將作為獨立專案在 https://github.com/GoogleCloudPlatform 繼續開發。

最初的里程碑版本基於 Spring Boot 2.3.x,但在 2.4.x 版本線啟動後將轉向該版本。

一旦 Spring Boot 的下一個特性版本 (2.4.0) 開始開發,2020.0 Release Train 將在 https://start.spring.io 上提供。有關如何在您的專案中包含此版本,請參閱下文的入門指南

總共包含 183 個問題、增強、錯誤和拉取請求。詳情請參閱 GitHub 專案

Spring Cloud Netflix

  • 所有處於維護模式的專案都已移除,所有依賴的專案都已相應更新。
  • 增加了區域負載均衡器實現支援 #3720
  • 移除了已棄用的 EurekaDiscoveryClient.EurekaServiceInstance #3742

Spring Cloud Sleuth

更新以支援最新版本的 Brave。

Spring Cloud Consul

增加了對 Consul 服務元資料 (Service Metadata) 的支援,而不是使用標籤 (tags) 作為元資料。

Spring Cloud Gateway

服務例項 (Service Instance) 元資料現在被新增到路由 (Route) 元資料中。增加了即使請求或響應體為空也能修改其內容的支援。增加了一個忽略路由定義錯誤的選項。

Spring Cloud CircuitBreaker

  • 將 Resilience4J 升級到 1.3.1

Spring Cloud Contract

增加了 Maven 外掛中增量測試生成的支援。增加了 stubrunner 中對 Spring Cloud Loadbalancer 的支援。

Spring Cloud Zookeeper

  • 基於 Ribbon 的功能已切換並新增到 Spring Cloud LoadBalancer #240

Spring Cloud Commons

  • 添加了一個生成快取的隨機值的屬性源 #719
  • 移除了 Spring Cloud LoadBalancer 與 Ribbon 的整合 #691

Spring Cloud Openfeign

  • 適配負載均衡器實現變更 #300

包含的模組

以下模組在 2020.0.0-M1 版本中進行了更新

| 模組 | 版本 | 問題 |--- |--- |--- |--- | Spring Cloud Netflix | 3.0.0.M1 | (問題) | Spring Cloud Function | 3.1.0.M1 |
| Spring Cloud Sleuth | 3.0.0.M1 | (問題) | Spring Cloud Consul | 3.0.0.M1 | (問題) | Spring Cloud Kubernetes | 2.0.0.M1 |
| Spring Cloud Gateway | 3.0.0.M1 | (問題) | Spring Cloud Circuitbreaker | 2.0.0.M1 |
| Spring Cloud Contract | 3.0.0.M1 | (問題) | Spring Cloud Config | 3.0.0.M1 |
| Spring Cloud Build | 3.0.0.M1 |
| Spring Cloud Cloudfoundry | 3.0.0.M1 |
| Spring Cloud Security | 3.0.0.M1 |
| Spring Cloud Bus | 3.0.0.M1 |
| Spring Cloud Vault | 3.0.0.M1 |
| Spring Cloud Zookeeper | 3.0.0.M1 | (問題) | Spring Cloud Commons | 3.0.0.M1 | (問題) | Spring Cloud Openfeign | 3.0.0.M1 | (問題)

一如既往,我們歡迎在 GitHubGitterStack OverflowTwitter 上提供反饋。

入門指南

使用 Maven 並引入 BOM(僅用於依賴管理)入門
<repositories>
    <repository>
        <id>spring-milestones</id>
        <name>Spring Milestones</name>
        <url>https://repo.spring.io/milestone</url>
        <snapshots>
            <enabled>false</enabled>
        </snapshots>
    </repository>
</repositories>

<dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-dependencies</artifactId>
            <version>2020.0.0-M1</version>
            <type>pom</type>
            <scope>import</scope>
        </dependency>
    </dependencies>
</dependencyManagement>

<dependencies>
    <dependency>
        <groupId>org.springframework.cloud</groupId>
        <artifactId>spring-cloud-starter-config</artifactId>
    </dependency>
    <dependency>
        <groupId>org.springframework.cloud</groupId>
        <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
    </dependency>
    <!-- ... -->
</dependencies>

使用 Gradle 入門

plugins {
  id 'org.springframework.boot' version '2.3.0.M4'
  id 'io.spring.dependency-management' version '1.0.9.RELEASE'
  id 'java'
}

repositories {
  mavenCentral()
  maven { url 'https://repo.spring.io/milestone' }
}

ext {
  set('springCloudVersion', "2020.0.0-M1")
}

dependencyManagement {
  imports {
    mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
  }
}

dependencies {
  compile 'org.springframework.cloud:spring-cloud-starter-config'
  compile 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
  //...
}

訂閱 Spring 新聞通訊

透過 Spring 新聞通訊保持聯絡

訂閱

搶先一步

VMware 提供培訓和認證,助您快速提升。

瞭解更多

獲取支援

Tanzu Spring 透過一個簡單的訂閱提供對 OpenJDK™、Spring 和 Apache Tomcat® 的支援和二進位制檔案。

瞭解更多

即將舉行的活動

檢視 Spring 社群所有即將舉行的活動。

檢視全部