領先一步
VMware 提供培訓和認證,助您加速進步。
瞭解更多我很高興代表社群宣佈 Spring Cloud 2021.0 版本列車(代號 Jubilee)的正式釋出,今天已可用。該版本可在 Maven Central 中找到。您可以檢視 2021.0 發行說明以獲取更多資訊。
2021.0.0 與 Spring Boot 2.6.1 相容
請參閱專案頁面,瞭解此版本中包含的所有問題和拉取請求。
@Cachable以下模組作為 2021.0.0 的一部分進行了更新
| 模組 | 版本 | 問題 |
|---|---|---|
| Spring Cloud Vault | 3.1.0 | |
| Spring Cloud Bus | 3.1.0 | |
| Spring Cloud CLI | 3.1.0 | |
| Spring Cloud Zookeeper | 3.1.0 | |
| Spring Cloud Circuitbreaker | 2.1.0 | (問題) |
| Spring Cloud Commons | 3.1.0 | (問題) |
| Spring Cloud Kubernetes | 2.1.0 | (問題) |
| Spring Cloud OpenFeign | 3.1.0 | (問題) |
| Spring Cloud Task | 2.4.0 | (問題) |
| Spring Cloud Sleuth | 3.1.0 | (問題) |
| Spring Cloud Contract | 3.1.0 | (問題) |
| Spring Cloud Consul | 3.1.0 | |
| Spring Cloud Function | 3.2.1 | (問題) |
| Spring Cloud Stream | 3.2.1 | 請參閱上面列出的問題 |
| Spring Cloud Gateway | 3.1.0 | (問題) |
| Spring Cloud Config | 3.1.0 | (問題) |
| Spring Cloud Cloudfoundry | 3.1.0 | |
| Spring Cloud Starter Build | 2021.0.0 | |
| Spring Cloud Netflix | 3.1.0 | (問題) |
一如既往,我們歡迎大家在 GitHub、Gitter、Stack Overflow 或 Twitter 上提供反饋。
Maven 起步使用 BOM(僅依賴管理)
<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.6.1'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'java'
}
group = 'com.example'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '11'
repositories {
mavenCentral()
}
ext {
set('springCloudVersion', "2021.0.0")
}
dependencies {
implementation 'org.springframework.cloud:spring-cloud-starter-config'
implementation 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
}
dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
}
}