Spring Cloud 2022.0.0 釋出候選版本3 (代號 Kilburn) 已釋出

版本釋出 | Olga Maciaszek-Sharma | 2022年12月2日 | ...

我很高興代表社群宣佈,Spring Cloud 2022.0 釋出列車的釋出候選版本3 (RC3) 於今日釋出。該版本可在 Spring Milestone 倉庫找到。您可以檢視 2022.0 釋出說明以獲取更多資訊

2022.0.0 RC3 版本中的顯著變化

點選此處檢視此版本中的所有問題。

Spring Cloud 2022.0.0-RC3 需要 Spring Boot 3.0.0。

Spring Cloud Contract

  • 移除了 Gradle 對 src/test/resources/contracts 檢查的支援 (#1848)

檢視最新的遷移指南條目以獲取更多資訊。

Spring Cloud Gateway

  • 添加了停用全域性 CORS 配置的可能性 (#2779)

Spring Cloud OpenFeign

Spring Cloud Commons

  • 在 AOT 模式下切換到延遲初始化子上下文 (#1176)

Spring Cloud Kubernetes

Spring Cloud Config

  • Spring Vault 升級到 3.0.0 (2193)

Spring Cloud Vault

  • Spring Vault 升級到 3.0.0 (665)

Spring Cloud Stream

  • Spring Cloud Stream 中的測試繫結器已從核心 Spring Cloud Stream 模組中移至單獨的工件。在此版本之前,測試繫結器是核心模組的一部分,使用者使用 test-binder 分類器來使用它,這很不方便。透過此版本,測試繫結器現在已移至 spring-cloud-stream-test-binder 模組並可透過其獲得。您可以將其作為依賴項新增到您的應用程式中,並獲取所有以前的測試繫結器元件。

  • 改進了核心 Spring Cloud Stream 中的錯誤處理文件

  • Spring Cloud Stream 模式登錄檔基於 AVRO 的轉換器已更新到 AVRO 1.11.1

  • 從該版本開始,AWS Kinesis 繫結器不再是 Spring Cloud Stream 釋出列車的一部分,並將單獨釋出。

以下模組已作為 2022.0.0-RC3 的一部分進行了更新

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

一如既往,我們歡迎大家在 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-RC3</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'
  id 'io.spring.dependency-management' version '1.1.0'
}

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

ext {
  set('springCloudVersion', "2022.0.0-RC3")
}

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'
}

獲取 Spring 新聞通訊

透過 Spring 新聞通訊保持聯絡

訂閱

領先一步

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

瞭解更多

獲得支援

Tanzu Spring 提供 OpenJDK™、Spring 和 Apache Tomcat® 的支援和二進位制檔案,只需一份簡單的訂閱。

瞭解更多

即將舉行的活動

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

檢視所有