領先一步
VMware 提供培訓和認證,以加速您的進展。
了解更多我很高興代表社群宣布,Spring Cloud Greenwich Release Train 的 Service Release 5 (SR5) 今天已釋出。 可以在 Maven Central 中找到此版本。 您可以查看 Greenwich 發布說明或 Spring Cloud 專案以取得更多資訊。
此版本包含錯誤修正、小幅增強和文件更新。
這是 Greenwich Release Train 的最後一個排定的版本(請參閱此處了解更多詳細資訊)。 我們建議您盡快升級到 Hoxton。 Greenwich.SR5 是基於 Spring Boot 2.1.12。
為了支援在 config client 中從 YAML 合併列表,進行了一項變更,以便將每個 PropertySource
單獨添加到環境中,而不是添加到組合中。
以下模組已作為 Greenwich.SR5 的一部分更新
| 模組 | 版本 | 問題 |--- |--- |--- |--- | Spring Cloud Build | 2.1.10.RELEASE |
| Spring Cloud Sleuth | 2.1.7.RELEASE | (問題) | Spring Cloud Consul | 2.1.5.RELEASE | (問題) | Spring Cloud Gateway | 2.1.5.RELEASE | (問題) | Spring Cloud Contract | 2.1.5.RELEASE | (問題) | Spring Cloud Netflix | 2.1.5.RELEASE | (問題) | Spring Cloud Gcp | 1.1.5.RELEASE |
| Spring Cloud Config | 2.1.6.RELEASE | (問題) | Spring Cloud Openfeign | 2.1.5.RELEASE | (問題) | Spring Cloud Commons | 2.1.5.RELEASE | (問題) | Spring Cloud Aws | 2.1.4.RELEASE |
| Spring Cloud Vault | 2.1.5.RELEASE |
| Spring Cloud Bus | 2.1.4.RELEASE | (問題) | Spring Cloud Kubernetes | 1.0.5.RELEASE | (問題)
一如既往,我們歡迎您在 GitHub、Gitter、Stack Overflow 或 Twitter 上提供意見。
開始使用 Maven 與 BOM (僅限依賴管理)
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>Greenwich.SR5</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.1.12.RELEASE'
id 'io.spring.dependency-management' version '1.0.8.RELEASE'
id 'java'
}
group = 'com.example'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '1.8'
repositories {
mavenCentral()
}
dependencies {
implementation 'org.springframework.cloud:spring-cloud-starter-config'
implementation 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
// ...
}