領先一步
VMware 提供培訓和認證,助您快速提升。
瞭解更多我很高興代表社群宣佈,Spring Cloud 2022.0.3 Release Train 的通用版本 (RELEASE) 於今日釋出。該版本可在 Maven Central 中找到。您可以查閱 2022.0.3 版本說明獲取更多資訊。
此版本相容 Spring Boot 3.1.x。
檢視此版本的所有 issue 和 pull request 在此。
Spring Cloud Config 中存在一個已知缺陷,與透過服務發現定位配置伺服器有關。為了在此版本中啟用此功能,您需要在環境變數或系統屬性中設定 spring.cloud.config.discovery.enabled=true
和 spring.cloud.config.discovery.serviceId
。此 bug 將在下個版本中修復。
以下模組已作為 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}"
}
}