領先一步
VMware 提供培訓和認證,加速您的進展。
了解更多我謹代表社群,很高興宣布 Spring Cloud 2022.0.2 Release Train 的正式發行版 (RELEASE) 今天已發佈。此版本可在 Maven Central 找到。您可以查看 2022.0.2 發行說明 以取得更多資訊。
請參閱此版本中包含的所有問題和提取請求 此處。
在批次模式中新增 DLQ 支援 錯誤修正與增強功能
spring.config.import=consul:
時,CONSUL_TOKEN
未被讀取的問題 (738)agentCheckPass
(770)以下模組已更新,作為 2022.0.2 的一部分
模組 | 版本 | 議題 |
---|---|---|
Spring Cloud Vault | 4.0.1 | (議題) |
Spring Cloud Circuitbreaker | 3.0.1 | |
Spring Cloud Kubernetes | 3.0.2 | (議題) |
Spring Cloud Task | 3.0.2 | (議題) |
Spring Cloud Function | 4.0.2 | (議題) |
Spring Cloud Commons | 4.0.2 | (議題) |
Spring Cloud Openfeign | 4.0.2 | (議題) |
Spring Cloud Stream | 4.0.2 | |
Spring Cloud Consul | 4.0.2 | (議題) |
Spring Cloud Contract | 4.0.2 | (議題) |
Spring Cloud Gateway | 4.0.4 | (議題) |
Spring Cloud Config | 4.0.2 | (議題) |
Spring Cloud Netflix | 4.0.1 | (議題) |
Spring Cloud Build | 4.0.2 |
一如既往,我們歡迎您在 GitHub、Gitter、Stack Overflow 或 Twitter 上提供意見回饋。
開始使用 Maven 和 BOM (僅限依賴項管理)
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>2022.0.2</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.0.5'
id 'io.spring.dependency-management' version '1.1.0'
}
ext {
set('springCloudVersion', "2022.0.2")
}
dependencies {
implementation 'org.springframework.cloud:spring-cloud-starter-config'
implementation 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
// ...
testImplementation 'org.springframework.boot:spring-boot-starter-test'
}
dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
}
}