Spring Cloud 2022.0.0-RC1 版本現已發佈

發佈 | Spencer Gibb | 2022 年 10 月 31 日 | ...

我謹代表社群,很高興宣布 Spring Cloud 2022.0 發行版的候選版本 1 (RC1) 今天發佈。此版本可在 Spring Milestone 儲存庫中找到。您可以查看 2022.0 發行說明 以取得更多資訊。

2022.0.0 發行版的顯著變更

請參閱 此處 關閉的所有問題。

Spring Cloud Function

  • 可觀察性和原生提示的更新

Spring Cloud OpenFeign

  • 新增目標 URL 重新整理支援 (#710)
  • 新增 LoadBalancer X-Forwarded Headers 支援 (#748)
  • 將 Jackson 自動組態設定為預設啟用 (#476)
  • 移除棄用項目並調整為 Feign 中的 API 變更 (#768)

Spring Cloud Commons

  • 新增對基於屬性之加權負載平衡組態的支援 (#1163)

Spring Cloud Netflix

  • 將 Apache HttpClient 遷移至 Apache HC5 HttpClient (#4126)

Spring Cloud Stream

  • 可觀察性更新

Spring Cloud Gateway

Spring Cloud Config

以下模組已更新作為 2022.0.0-RC1 的一部分

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

一如既往,我們歡迎您在 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-RC1</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 'org.springframework.boot' version '3.0.0-RC1'
  id 'io.spring.dependency-management' version '1.1.0'
  id 'java'
}

group = 'com.example'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '17'

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

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

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

檢視全部