領先一步
VMware 提供培訓和認證,加速您的進展。
了解更多我謹代表社群宣布 Spring Cloud 2021.0.3 Release Train 今天正式發布。此版本可在 Maven Central 找到。您可以查看 2021.0.3 發行說明 以取得更多資訊。
此版本主要與 Spring Boot 2.7.0 以及 Spring Boot 2.6.x 相容。
若要查看此版本中的所有議題和提取請求,請參閱這裡。
PrefixPath
過濾器的路徑變數支援。以下模組已更新為 2021.0.3 的一部分
模組 | 版本 | 議題 |
---|---|---|
Spring Cloud Stream | 3.2.4 | |
Spring Cloud Config | 3.1.3 | (議題) |
Spring Cloud Build | 3.1.3 | (議題) |
Spring Cloud Sleuth | 3.1.3 | (議題) |
Spring Cloud Contract | 3.1.3 | (議題) |
Spring Cloud Starter Build | 2021.0.3 | |
Spring Cloud Gateway | 3.1.3 | (議題) |
Spring Cloud Consul | 3.1.1 | |
Spring Cloud Netflix | 3.1.3 | |
Spring Cloud Cloudfoundry | 3.1.2 | |
Spring Cloud Vault | 3.1.1 | |
Spring Cloud Kubernetes | 2.1.3 | (議題) |
Spring Cloud Bus | 3.1.2 | |
Spring Cloud Zookeeper | 3.1.2 | |
Spring Cloud Task | 2.4.3 | (議題) |
Spring Cloud Cli | 3.1.1 | |
Spring Cloud Commons | 3.1.3 | |
Spring Cloud Openfeign | 3.1.3 | |
Spring Cloud Function | 3.2.5 | |
Spring Cloud Circuitbreaker | 2.1.3 |
一如既往,我們歡迎您在 GitHub、Gitter、Stack Overflow 或 Twitter 上提供意見回饋。
開始使用 Maven 和 BOM (僅限依賴項管理)
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>2021.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
plugins {
id 'org.springframework.boot' version '2.6.8'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'java'
}
group = 'com.example'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '8'
repositories {
mavenCentral()
}
ext {
set('springCloudVersion', "2021.0.3")
}
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}"
}
}