搶先一步
VMware 提供培訓和認證,助你加速前進。
瞭解更多我代表社群高興地宣佈,Spring Cloud 2022.0 釋出列車的 Release Candidate 3 (RC3) 版本今天已釋出。該版本可以在 Spring 里程碑倉庫中找到。你可以檢視 2022.0 的釋出說明以獲取更多資訊。
點選此處檢視此版本中的所有問題。
Spring Cloud 2022.0.0-RC3 需要 Spring Boot 3.0.0。
src/test/resources/contracts
檢查的支援 (#1848)檢視最新的遷移指南條目以獲取更多資訊。
12.1
(#792)Spring Cloud Stream 中的測試繫結器已從核心 Spring Cloud Stream 模組移至一個單獨的 artifact。在此版本之前,測試繫結器是核心模組的一部分,使用者透過使用 test-binder
分類器來使用它,這很不方便。從此版本開始,測試繫結器現已移動並可透過 spring-cloud-stream-test-binder
模組獲得。你可以將其作為依賴新增到你的應用程式中,並獲得所有之前的測試繫結器元件。
改進了核心 Spring Cloud Stream 中的錯誤處理文件
Spring Cloud Stream Schema Registry 基於 AVRO 的轉換器已更新至 AVRO 1.11.1
從本版本開始,AWS Kinesis 繫結器不再是 Spring Cloud Stream 釋出列車的一部分,並將單獨釋出。
以下模組在 2022.0.0-RC3 版本中進行了更新
模組 | 版本 | 問題 |
---|---|---|
Spring Cloud Task | 3.0.0-RC3 | (問題) |
Spring Cloud Bus | 4.0.0-RC3 | |
Spring Cloud Contract | 4.0.0-RC3 | (問題) |
Spring Cloud Circuitbreaker | 3.0.0-RC3 | |
Spring Cloud Function | 4.0.0-RC3 | |
Spring Cloud OpenFeign | 4.0.0-RC3 | (問題) |
Spring Cloud Zookeeper | 4.0.0-RC3 | |
Spring Cloud Commons | 4.0.0-RC3 | (問題) |
Spring Cloud Vault | 4.0.0-RC3 | (問題) |
Spring Cloud Kubernetes | 3.0.0-RC3 | (問題) |
Spring Cloud Stream | 4.0.0-RC3 | |
Spring Cloud Starter Build | 2022.0.0-RC3 | |
Spring Cloud Consul | 4.0.0-RC3 | |
Spring Cloud Config | 4.0.0-RC3 | (問題 |
Spring Cloud Build | 4.0.0-RC3 | |
Spring Cloud Gateway | 4.0.0-RC3 | (問題) |
Spring Cloud Netflix | 4.0.0-RC3 |
一如既往,歡迎在 GitHub、Gitter、Stack Overflow 或 Twitter 上提供反饋意見。
使用 Maven 和 BOM(僅依賴管理)快速開始
<repositories>
<repository>
<id>spring-milestones</id>
<name>Spring Milestones</name>
<url>https://repo.spring.io/milestone</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>2022.0.0-RC3</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.0'
id 'io.spring.dependency-management' version '1.1.0'
}
repositories {
mavenCentral()
maven { url 'https://repo.spring.io/milestone' }
}
ext {
set('springCloudVersion', "2022.0.0-RC3")
}
dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
}
}
dependencies {
implementation 'org.springframework.cloud:spring-cloud-starter-config'
implementation 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
}