領先一步
VMware 提供培訓和認證,助您加速進步。
瞭解更多我很高興代表社群宣佈,Spring Cloud 2020.0 釋出列車(2020.0.3)的 Service Release 3 已於今日釋出。該版本可在 Maven Central 找到。您可以檢視 2020.0 釋出說明以獲取更多資訊。
此版本最大的變化是支援 Spring Boot 2.5。除此之外,此版本主要用於錯誤修復和依賴項升級。
請在 Github 專案中檢視所有包含的問題和拉取請求。
spring.config.import 相關的多個錯誤修復spring.config.import 相關的遠端和本地配置的配置檔案特定行為(#706)DiscoveryClient 現在預設使用當前名稱空間(#678)connectTimeout 和 readTimeout 的支援(#468)以下模組已作為 2020.0.3 的一部分進行更新
| 模組 | 版本 | 問題 |
|---|---|---|
| Spring Cloud Bus | 3.0.3 | |
| Spring Cloud Circuitbreaker | 2.0.2 | |
| Spring Cloud CLI | 3.0.3 | |
| Spring Cloud Cloudfoundry | 3.0.2 | |
| Spring Cloud Commons | 3.0.3 | 問題 |
| Spring Cloud Config | 3.0.4 | 問題 |
| Spring Cloud Consul | 3.0.3 | 問題 |
| Spring Cloud Contract | 3.0.3 | 問題 |
| Spring Cloud Gateway | 3.0.3 | 問題 |
| Spring Cloud Kubernetes | 2.0.3 | 問題 |
| Spring Cloud Netflix | 3.0.3 | 問題 |
| Spring Cloud Openfeign | 3.0.3 | 問題 |
| Spring Cloud Sleuth | 3.0.3 | 問題 |
| Spring Cloud Task | 2.3.2 | |
| Spring Cloud Vault | 3.0.3 | |
| Spring Cloud Zookeeper | 3.0.3 | 問題 |
一如既往,我們歡迎大家在 GitHub、Gitter、Stack Overflow 或 Twitter 上提供反饋。
Maven 起步使用 BOM(僅依賴管理)
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>2020.0.3</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.11.RELEASE"
}
}
apply plugin: "io.spring.dependency-management"
dependencyManagement {
imports {
mavenBom 'org.springframework.cloud:spring-cloud-dependencies:2020.0.3'
}
}
dependencies {
compile 'org.springframework.cloud:spring-cloud-starter-config'
compile 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
//...
}