Spring Cloud 2020.0.0-M1 已發佈

發佈 | Spencer Gibb | 2020 年 4 月 17 日 | ...

我謹代表社群,很高興地宣布 Spring Cloud 2020.0.0 (代號:Ilford) Release Train 的 Milestone 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 上使用。請參閱下面的 Getting Started,以獲取有關在您的專案中包含此版本的說明。

總之,此版本中包含總共 183 個問題、增強功能、錯誤和提取請求。有關詳細資訊,請參閱 GitHub 專案

Spring Cloud Netflix

  • 所有維護模式專案都已移除,並且所有相依專案都已相應更新。
  • 新增了分區負載平衡器實作支援 #3720
  • 移除了已棄用的 EurekaDiscoveryClient.EurekaServiceInstance #3742

Spring Cloud Sleuth

已更新為支援最新版本的 Brave。

Spring Cloud Consul

新增了對 Consul Service Metadata 的支援,而不是使用標籤作為 Metadata。

Spring Cloud Gateway

現在 Service Instance metadata 已新增至 Route metadata。新增了對修改請求或回應正文的支援,即使正文為空。新增了忽略路由定義錯誤的選項。

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

  • 新增了一個產生隨機值的 Property Source,該值被快取 #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 社群中所有即將舉辦的活動。

查看全部