領先一步
VMware 提供培訓和認證,助您加速發展。
瞭解更多我代表社群很高興地宣佈,Spring Cloud 2020.0 釋出序列的 Service Release 3 (2020.0.3) 今天釋出了。該版本可在 Maven Central 中找到。您可以檢視 2020.0 的釋出說明以獲取更多資訊。
此版本中最大的變化是支援 Spring Boot 2.5。除此之外,此版本主要用於錯誤修復和依賴項升級。
在Github 專案中檢視所有包含的問題和拉取請求。
spring.config.import
相關的錯誤spring.config.import
在遠端和本地配置中與 profile 相關的行為問題 (#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'
//...
}