Spring Cloud 2022.0.3 (又名 Kilburn) 版本已發布

發布 | Spencer Gibb | 2023年5月25日 | ...

我很榮幸代表社群宣布 Spring Cloud 2022.0.3 Release Train 的正式發行 (GA) 版本已於今日發布。此版本可在 Maven Central 找到。您可以查看 2022.0.3 發行說明以獲取更多資訊。

2022.0.3 Release Train 中的重要變更

此版本提供與 Spring Boot 3.1.x 的相容性。

在此處查看此版本的所有問題和 Pull Request:here

Spring Cloud Config 中存在一個已知缺陷,與透過服務發現定位 Config Server 有關。為了在此版本中啟用此功能,您需要在環境變數或系統屬性中設定 spring.cloud.config.discovery.enabled=truespring.cloud.config.discovery.serviceId。此錯誤將在下一個版本中修正。

Spring Cloud Function

  • 支援 Spring Integration,請參閱 (1032)

Spring Cloud Commons

  • 針對在應用程式上下文生命週期中過晚新增 bootstrap 屬性來源的特定情況,新增修復程式 (1228)

Spring Cloud Gateway

  • 新增透過 Actuator 批次新增路由的功能 (2915)
  • 新增透過 Actuator 重新整理部分路由的功能 (2916)

Spring Cloud Stream

  • 在 Kafka reactive binder 中新增對基於正則表達式的目的地模式的支援 (2709)

Spring Cloud Function

  • 新增對將現有的 Spring MVC REST 應用程式部署到無伺服器平台 (例如 AWS Lambda Functions 和 Azure Functions) 的初始支援。
  • 全新的 Spring Integration 模組,讓您可以在 Spring Integration DSL 中使用 Spring Cloud Function。

Spring Cloud Config

  • 支援特定 profile 的設定資料 (2260)

Spring Cloud Netflix

  • 修正在參照 Jersey 3 時錯誤參照 Jersey 1 類別的問題 (4176)(4177)

以下模組已在 2022.0.3 版本中更新

模組 版本 問題
Spring Cloud Kubernetes 3.0.3 (問題)
Spring Cloud Task 3.0.3 (問題)
Spring Cloud Function 4.0.3 (問題
Spring Cloud Commons 4.0.3 (問題)
Spring Cloud Circuitbreaker 3.0.2  
Spring Cloud Openfeign 4.0.3 (問題)
Spring Cloud Gateway 4.0.6 (問題)
Spring Cloud Stream 4.0.3 (問題)
Spring Cloud Contract 4.0.3 (問題)
Spring Cloud Config 4.0.3 (問題)
Spring Cloud Build 4.0.3  
Spring Cloud Starter Build 2022.0.3  
Spring Cloud Netflix 4.0.2 (問題)

一如既往,我們歡迎您在 GitHubGitterStack OverflowTwitter 上提供意見回饋。

路線圖

請關注我們的 Github ProjectsRelease Milestones,以追蹤我們的 2023.0 Release Train (又名 Leyton)。

2022.0.3 入門指南

若要開始使用 Maven 和 BOM (僅限依賴管理)


<dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-dependencies</artifactId>
            <version>2022.0.3</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.1.0'
  id 'io.spring.dependency-management' version '1.1.0'
}

repositories {
  mavenCentral()
}

ext {
  set('springCloudVersion', "2022.0.3")
}

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

dependencyManagement {
  imports {
    mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
  }
}

訂閱 Spring 電子報

隨時接收 Spring 電子報的最新資訊

訂閱

領先一步

VMware 提供訓練和認證,加速您的進展。

了解更多

取得支援

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

了解更多

即將到來的活動

查看 Spring 社群中所有即將到來的活動。

查看全部