Spring Cloud 2022.0.0 Release Candidate 2 (codename Kilburn) 已發布

發布 | Ryan Baxter | 2022 年 11 月 18 日 | ...

我謹代表社群宣布,Spring Cloud 2022.0 Release Train 的 Release Candidate 2 (RC2) 今天已發布。此版本可在 Spring Milestone 儲存庫中找到。您可以查看 2022.0 發行說明 以取得更多資訊。

2022.0 Release Train 中的顯著變更

點擊此處查看此版本中的所有問題。

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

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

查看全部