領先一步
VMware 提供訓練和認證,加速您的進展。
了解更多我很榮幸代表社群宣布 Spring Cloud 2022.0.3 Release Train 的正式發行 (GA) 版本已於今日發布。此版本可在 Maven Central 找到。您可以查看 2022.0.3 發行說明以獲取更多資訊。
此版本提供與 Spring Boot 3.1.x 的相容性。
在此處查看此版本的所有問題和 Pull Request:here。
Spring Cloud Config 中存在一個已知缺陷,與透過服務發現定位 Config Server 有關。為了在此版本中啟用此功能,您需要在環境變數或系統屬性中設定 spring.cloud.config.discovery.enabled=true
和 spring.cloud.config.discovery.serviceId
。此錯誤將在下一個版本中修正。
以下模組已在 2022.0.3 版本中更新
模組 | 版本 | 問題 |
---|---|---|
Spring Cloud Kubernetes | 3.0.3 | (問題) |
Spring Cloud Task | 3.0.3 | (問題) |
Spring Cloud Function | 4.0.3 | (問題 |
Spring Cloud Commons | 4.0.3 | (問題) |
Spring Cloud Circuitbreaker | 3.0.2 | |
Spring Cloud Openfeign | 4.0.3 | (問題) |
Spring Cloud Gateway | 4.0.6 | (問題) |
Spring Cloud Stream | 4.0.3 | (問題) |
Spring Cloud Contract | 4.0.3 | (問題) |
Spring Cloud Config | 4.0.3 | (問題) |
Spring Cloud Build | 4.0.3 | |
Spring Cloud Starter Build | 2022.0.3 | |
Spring Cloud Netflix | 4.0.2 | (問題) |
一如既往,我們歡迎您在 GitHub、Gitter、Stack Overflow 或 Twitter 上提供意見回饋。
請關注我們的 Github Projects 和 Release Milestones,以追蹤我們的 2023.0 Release Train (又名 Leyton)。
若要開始使用 Maven 和 BOM (僅限依賴管理)
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>2022.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 'java'
id 'org.springframework.boot' version '3.1.0'
id 'io.spring.dependency-management' version '1.1.0'
}
repositories {
mavenCentral()
}
ext {
set('springCloudVersion', "2022.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}"
}
}