Spring Cloud 2022.0.0-M2(代號 Kilburn)已釋出

釋出 | Marcin Grzejszczak | 2022 年 4 月 5 日 | ...

我很高興代表社群宣佈,Spring Cloud 2022.0.0 Release Train 的里程碑版本 2 (M2) 已於今日釋出。該版本可在Spring Milestone 倉庫中找到。您可以查閱 2022.0 版本說明以獲取更多資訊

2022.0.0-M2 Release Train 的顯著變化

有關此版本中包含的所有問題和拉取請求,請參閱專案頁面

Spring Cloud 2022.0.0-M2 與 Spring Boot 3.0.0-M2 相容。

Spring Cloud Stream

  • Spring Cloud Stream 的 Kafka 和 RabbitMQ binder 已遷移至核心 Spring Cloud Stream 倉庫。透過這一改變,Spring Cloud Stream 現在遵循單倉庫模式,所有與 Spring Cloud Stream 框架相關的程式碼庫現在都是單個倉庫的一部分。有關 Kafka binder 的更多詳細資訊,請參閱此處;有關 RabbitMQ binder,請參閱此處。我們建議在核心倉庫中提交針對 Kafka 和 RabbitMQ binder 的新功能請求和錯誤報告。
  • 引入了對基於 Reactor Kafka 的新響應式 Kafka binder 的初步支援。該支援在底層使用 Reactor Kafka 實現消費者和生產者繫結。更多詳細資訊請參閱此 issue
  • 此外,鑑於我們依賴新的測試 binder 已經三年多了,我們也移除了舊的測試模組

Spring Cloud Config

  • 接收到錯誤響應碼時嘗試多個 URL (#1845)
  • 允許指定 down 健康狀態 (#2056)

Spring Cloud Kubernetes

  • 重構 configmaps 和 secrets 實現 (#917)

Spring Cloud Contract

Spring Cloud Gateway

  • 為 "X-Forwarded-For" 請求頭新增路由斷言 (#2384)

Spring Cloud Function

  • 支援新增多個路由
  • 支援對請求頭鍵進行大小寫不敏感評估
  • cve-2022-22963

Spring Cloud Commons

作為 2022.0.0-M2 的一部分,以下模組已更新

模組 版本 問題
Spring Cloud Stream 4.0.0-M2
Spring Cloud Config 4.0.0-M2 (問題)
Spring Cloud Build 4.0.0-M2
Spring Cloud Kubernetes 3.0.0-M2 (問題)
Spring Cloud Circuitbreaker 3.0.0-M2 (問題)
Spring Cloud Contract 4.0.0-M2 (問題)
Spring Cloud Consul 4.0.0-M2
Spring Cloud Gateway 4.0.0-M2 (問題)
Spring Cloud Starter Build 2022.0.0-M2
Spring Cloud Function 4.0.0-M2
Spring Cloud Vault 4.0.0-M2
Spring Cloud Bus 4.0.0-M2
Spring Cloud Zookeeper 4.0.0-M2
Spring Cloud Task 3.0.0-M2 (問題)
Spring Cloud Commons 4.0.0-M2 (問題)
Spring Cloud Openfeign 4.0.0-M2 (問題)

一如既往,歡迎透過GitHubGitterStack OverflowTwitter 提供反饋意見。

要使用包含 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-M2</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

buildscript {
dependencies {
classpath "io.spring.gradle:dependency-management-plugin:1.0.2.RELEASE"
}
}

repositories {
maven {
url 'https://repo.spring.io/milestone'
}
}

apply plugin: "io.spring.dependency-management"

dependencyManagement {
imports {
mavenBom 'org.springframework.cloud:spring-cloud-dependencies:2022.0.0-M2'
}
}

dependencies {
compile 'org.springframework.cloud:spring-cloud-starter-config'
compile 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
...
}

獲取 Spring 新聞簡報

訂閱 Spring 新聞簡報,保持聯絡

訂閱

搶佔先機

VMware 提供培訓和認證,助您加速進步。

瞭解更多

獲取支援

Tanzu Spring 在一項簡單的訂閱中提供對 OpenJDK™、Spring 和 Apache Tomcat® 的支援和二進位制檔案。

瞭解更多

即將舉行的活動

檢視 Spring 社群的所有即將舉行的活動。

檢視全部