超越自我
VMware 提供培訓和認證,助你加速進步。
瞭解更多我代表社群,很高興地宣佈 Spring Cloud 2022.0 釋出列車的 Release Candidate 2 (RC2) 版本今日已釋出。該版本可在 Spring Milestone 倉庫中找到。你可以檢視 2022.0 的釋出說明瞭解更多資訊。
點選這裡檢視此版本的所有問題。
Spring Cloud 2022.0.0-RC2 要求 Spring Boot 3.0.0-RC2。
所有 Spring Cloud 專案現在都使用 Apache HttpClient v5。
此版本包含大量更改,包括依賴項升級和一些破壞性更改。請檢視並向我們提供反饋!
破壞性變更
您可以在此處閱讀有關遷移過程的更多資訊。
12.0 (#782)移除依賴於 Apache HttpClient v4 的介面。移除 OK HttpClient 介面,因為它們僅被 Spring Cloud OpenFeign 使用。Spring Cloud OpenFeign 現在直接使用 OK HttpClient (#1171)
已移除已棄用的類和介面。請參閱 Spring Cloud 2022 釋出說明中的破壞性變更。
添加了原生映象支援
以下模組作為 2022.0.0-RC2 的一部分進行了更新
| 模組 | 版本 | 問題 |
|---|---|---|
| Spring Cloud Task | 3.0.0-RC2 | (問題) |
| Spring Cloud Bus | 4.0.0-RC2 | |
| Spring Cloud Contract | 4.0.0-RC2 | (問題) |
| Spring Cloud Circuitbreaker | 3.0.0-RC2 | |
| Spring Cloud Function | 4.0.0-RC2 | |
| Spring Cloud Openfeign | 4.0.0-RC2 | (問題) |
| Spring Cloud Zookeeper | 4.0.0-RC2 | |
| Spring Cloud Commons | 4.0.0-RC2 | (問題) |
| Spring Cloud Vault | 4.0.0-RC2 | |
| Spring Cloud Kubernetes | 3.0.0-RC2 | (問題) |
| Spring Cloud Stream | 4.0.0-RC2 | |
| Spring Cloud Starter Build | 2022.0.0-RC2 | |
| Spring Cloud Consul | 4.0.0-RC2 | (問題) |
| Spring Cloud Config | 4.0.0-RC2 | (問題) |
| Spring Cloud Build | 4.0.0-RC2 | |
| Spring Cloud Gateway | 4.0.0-RC2 | (問題) |
| Spring Cloud Netflix | 4.0.0-RC2 | (問題) |
一如既往,我們歡迎在 GitHub、Gitter、Stack Overflow 或 Twitter 上提供反饋。
如何開始使用帶有 BOM 的 Maven(僅用於依賴項管理)
<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-RC2</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-RC2'
id 'io.spring.dependency-management' version '1.1.0'
}
repositories {
mavenCentral()
maven { url 'https://repo.spring.io/milestone' }
}
ext {
set('springCloudVersion', "2022.0.0-RC1")
}
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'
}