更上一層樓
VMware 提供訓練和認證,以加速您的進展。
了解更多我謹代表社群宣布 Spring Cloud 2020.0 Release Train 的 GA 版本已於今日發布。您可以在 Maven Central 找到此版本。您可以查看 2020.0 發布說明以取得更多資訊。
此版本需要 Spring Boot 2.4.1。一般來說,此版本旨在修復發布前的錯誤。
請參閱此頁面以取得已知問題的清單。
請參閱 wiki 以取得此 Release Train 中所有重大變更的清單。
請在 Github 專案中查看所有包含的問題和 Pull Request。
注意:預設已停用 Bootstrap。匯入組態的新方式是透過 Spring Boot 2.4 提供的全新 spring.config.import
功能。請參閱 Config Client、Consul、Vault 和 Zookeeper 的相關文件,以瞭解如何搭配新的組態匯入功能使用它們。
如果您需要舊版 Bootstrap 功能,請將 org.springframework.cloud:spring-cloud-starter-bootstrap
依賴項新增至您的專案。
spring.config.import
解密的支援 (issue)說明如何在 Windows 上複製專案。
下列模組已更新,作為 2020.0.0 的一部分
| 模組 | 版本 | 問題 |--- |--- |--- |--- | Spring Cloud Circuitbreaker | 2.0.0 |
| Spring Cloud Contract | 3.0.0 |
| Spring Cloud Kubernetes | 2.0.0 |
| Spring Cloud Commons | 3.0.0 |
| Spring Cloud Openfeign | 3.0.0 |
| Spring Cloud Cloudfoundry | 3.0.0 |
| Spring Cloud Bus | 3.0.0 |
| Spring Cloud Cli | 3.0.0 |
| Spring Cloud Zookeeper | 3.0.0 |
| Spring Cloud Sleuth | 3.0.0 |
| Spring Cloud Consul | 3.0.0 |
| Spring Cloud Starter Build | 2020.0.0 | | Spring Cloud Gateway | 3.0.0 |
| Spring Cloud Netflix | 3.0.0 |
| Spring Cloud Vault | 3.0.0 |
| Spring Cloud Config | 3.0.0 |
| Spring Cloud Task | 2.3.0 | (問題追蹤)
我們隨時歡迎您在 GitHub、Gitter、Stack Overflow 或 Twitter 上提供意見反應。
開始使用 Maven 和 BOM (僅限相依性管理)
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>2020.0.0</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
buildscript {
dependencies {
classpath "io.spring.gradle:dependency-management-plugin:1.0.10.RELEASE"
}
}
apply plugin: "io.spring.dependency-management"
dependencyManagement {
imports {
mavenBom 'org.springframework.cloud:spring-cloud-dependencies:2020.0.0'
}
}
dependencies {
compile 'org.springframework.cloud:spring-cloud-starter-config'
compile 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
//...
}