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繫結器已作為核心Spring Cloud Stream倉庫的一部分進行了遷移。透過此更改,Spring Cloud Stream現在採用單倉庫方法,所有與框架相關的Spring Cloud Stream程式碼庫現在都是單個倉庫的一部分。有關Kafka繫結器的更多詳細資訊請參見此處,有關RabbitMQ繫結器的詳細資訊請參見此處。我們建議在核心倉庫中提交Kafka和RabbitMQ繫結器的新功能請求和錯誤報告。
  • 引入了對基於 Reactor Kafka 的新型響應式 Kafka 繫結器 的初步支援。此支援包含使用 Reactor Kafka 作為底層實現的消費者和生產者繫結。更多詳細資訊請參閱此問題
  • 此外,鑑於我們現在已經依賴新的測試繫結器 3 年多了,我們也刪除了舊的測試模組

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 上提供反饋。

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 社群所有即將舉行的活動。

檢視所有