Spring Cloud 2022.0.0 Release Candidate 2 (代號 Kilburn) 已釋出

釋出 | Ryan Baxter | 2022年11月18日 | ...

我代表社群,很高興地宣佈 Spring Cloud 2022.0 釋出列車的 Release Candidate 2 (RC2) 版本今日已釋出。該版本可在 Spring Milestone 倉庫中找到。你可以檢視 2022.0 的釋出說明瞭解更多資訊。

2022.0 釋出列車的顯著變更

點選這裡檢視此版本的所有問題。

Spring Cloud 2022.0.0-RC2 要求 Spring Boot 3.0.0-RC2。

所有 Spring Cloud 專案現在都使用 Apache HttpClient v5。

Spring Cloud Contract

此版本包含大量更改,包括依賴項升級和一些破壞性更改。請檢視並向我們提供反饋!

破壞性變更

您可以在此處閱讀有關遷移過程的更多資訊。

Spring Cloud OpenFeign

  • 移除對 Spring Cloud Commons HttpClient 介面的使用 (#788)
  • 已移除 Apache HttpClient 4,取而代之的是 Apache HttpClient 5 (#783)
  • 升級到 Feign 12.0 (#782)

Spring Cloud Commons

  • 移除依賴於 Apache HttpClient v4 的介面。移除 OK HttpClient 介面,因為它們僅被 Spring Cloud OpenFeign 使用。Spring Cloud OpenFeign 現在直接使用 OK HttpClient (#1171)

  • 已移除已棄用的類和介面。請參閱 Spring Cloud 2022 釋出說明中的破壞性變更。

Spring Cloud Gateway

添加了原生映象支援

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

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

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

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

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

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

檢視全部