搶先一步
VMware 提供培訓和認證,助您快速提升。
瞭解更多我代表社群榮幸地宣佈,Spring Cloud 2020.0.0(代號:Ilford
)Release Train 的里程碑版本 1 (M1) 今天釋出了。此版本可在 Spring Milestone 倉庫中找到。您可以檢視 2020 年的釋出說明了解更多資訊。
我們更改了 Release Train 的版本命名方案。現在,我們遵循日曆版本控制(Calendar Versioning),簡稱 calver。我們將遵循 YYYY.MINOR.MICRO
的方案,其中 MINOR
是每年從零開始遞增的數字。MICRO
段對應於以前使用的字尾:.0
類似於 .RELEASE
,.2
類似於 .SR2
。預釋出版本的字尾分隔符也將從 .
更改為 -
,例如 2020.0.0-M1
和 2020.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 專案。
更新以支援最新版本的 Brave。
增加了對 Consul 服務元資料 (Service Metadata) 的支援,而不是使用標籤 (tags) 作為元資料。
服務例項 (Service Instance) 元資料現在被新增到路由 (Route) 元資料中。增加了即使請求或響應體為空也能修改其內容的支援。增加了一個忽略路由定義錯誤的選項。
增加了 Maven 外掛中增量測試生成的支援。增加了 stubrunner 中對 Spring Cloud Loadbalancer 的支援。
以下模組在 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 | (問題)
一如既往,我們歡迎在 GitHub、Gitter、Stack Overflow 和 Twitter 上提供反饋。
<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'
//...
}