領先一步
VMware 提供培訓和認證,助您加速進步。
瞭解更多我謹代表社群,高興地宣佈 Spring Cloud 2020.0.0(代號:Ilford)釋出線的里程碑 1 (M1) 於今日釋出。您可以在 Spring Milestone 倉庫中找到此版本。您可以查閱 2020 年的 釋出說明以獲取更多資訊。
我們更改了釋出線版本控制方案。我們現在遵循 日曆版本控制(簡稱 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 不再是釋出線的一部分。只要它們仍在支援中,它們將繼續作為 Hoxton 的一部分——至少持續到 2021 年 6 月。Spring Cloud GCP 將作為一個獨立專案繼續存在於 https://github.com/GoogleCloudPlatform。
最初的里程碑基於 Spring Boot 2.3.x,但一旦該版本線開始,將切換到 2.4.x。
一旦 Spring Boot 的下一個功能版本(2.4.0)開始開發,2020.0 釋出線將可在 https://start.spring.io 上使用。請參閱下面的 入門指南,瞭解如何將此版本包含在您的專案中。
總共有 183 個問題、增強、錯誤和拉取請求被包含在此釋出中。請參閱 GitHub 專案 以獲取詳細資訊。
更新以支援最新的 Brave 版本。
增加了對 Consul 服務元資料而非使用標籤作為元資料的支援。
服務例項元資料現已新增到路由元資料中。增加了修改請求或響應體(即使響應體為空)的支援。添加了一個忽略路由定義錯誤的選項。
為 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'
//...
}