Spring Cloud 2022.0.0-RC1 已釋出

釋出 | Spencer Gibb | 2022年10月31日 | ...

代表社群,我很高興地宣佈,Spring Cloud 2022.0 釋出火車 (Release Train) 的候選版本 1 (RC1) 今天正式釋出。該版本可在 Spring Milestone 倉庫中找到。您可以查閱 2022.0 釋出說明了解更多資訊

2022.0.0 釋出火車中的顯著變化

檢視所有已關閉的 issue 此處

Spring Cloud Function

  • Observability 和 Native Hints 更新

Spring Cloud OpenFeign

  • 增加了目標 URL 重新整理的支援 (#710)
  • 增加了對 LoadBalancer X-Forwarded Headers 的支援 (#748)
  • 將 Jackson Autoconfiguration 預設設定為啟用 (#476)
  • 移除了已棄用的內容並根據 Feign 中的 API 變更進行了調整 (#768)

Spring Cloud Commons

  • 增加了基於屬性的權重負載均衡配置支援 (#1163)

Spring Cloud Netflix

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

Spring Cloud Stream

  • Observability 更新

Spring Cloud Gateway

Spring Cloud Config

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

模組 版本 Issue
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 (issue)
Spring Cloud Zookeeper 4.0.0-RC1
Spring Cloud Commons 4.0.0-RC1 (issue)
Spring Cloud Kubernetes 3.0.0-RC1 (issue)
Spring Cloud Task 3.0.0-RC1 (issue)
Spring Cloud Netflix 4.0.0-RC1 (issue)
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 (issue)
Spring Cloud Config 4.0.0-RC1 (issue)
Spring Cloud Build 4.0.0-RC1

一如既往,我們歡迎您在 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-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 社群的所有近期活動。

檢視全部