Spring Cloud 2022.0.0-M2 (代號 Kilburn) 已發布

發布 | Marcin Grzejszczak | 2022年4月5日 | ...

我謹代表社群宣布,Spring Cloud 2022.0.0 發布列車的里程碑 2 (M2) 版本已於今日發布。此版本可在 Spring Milestone 儲存庫中找到。您可以查看 2022.0 發行說明 以取得更多資訊。

2022.0.0-M2 發布列車中的重點變更

請參閱專案頁面,以查看此版本中包含的所有問題和提取請求。

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 在幕後執行的消費者和生產者綁定。如需更多詳細資訊,請參閱此問題
  • 此外,鑑於我們已依賴新的測試 binder 超過 3 年,我們也移除了舊的測試模組

Spring Cloud Config

  • 收到錯誤回應代碼時,嘗試多個 URL (#1845)
  • 允許指定關閉的健康狀態 (#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 上提供意見反應。

若要開始使用 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-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 社群中所有即將到來的活動。

檢視全部