Spring Cloud 2022.0.0-M5 現已推出

發行版本 | Spencer Gibb | 2022 年 10 月 06 日 | ...

我謹代表社群宣布,Spring Cloud 2022.0.0 發行列車的里程碑 5 (M5) 版本已於今日推出。此發行版本可在 Spring Milestone 儲存庫中找到。您可以查看 2022.0.0 發行說明以取得更多資訊

2022.00-M5 發行列車的顯著變更

Spring Cloud Netflix

  • 已更新至 Eureka 2.0.0-rc.3。Eureka 2.0.0 是 Eureka 的新分支,與 7 年前 舊版 2.x-archive 實驗無關。新的 2.x 分支旨在與 JakartaEE 相容。這讓 Spring Cloud Netflix 可以與 Spring Framework 6.0 和 Spring Boot 3.0 相容。這是 Spring Cloud Netflix 首次參與 2022.0 發行列車。

Spring Cloud Consul

  • 新增執行階段提示以啟用原生映像檔支援 (#792)

Spring Cloud Gateway

  • 支援 Micrometer Observability (#2715)
  • 新增移除 JSON 屬性的篩選器 (#2742)
  • 新增在請求標頭不存在時新增請求標頭的篩選器 (#2737)

Spring Cloud OpenFeign

  • 允許根據選取的 ServiceInstance 自訂負載平衡請求 (#735)

Spring Cloud Commons

  • 新增基於權重的負載平衡 (#1063)
  • 在 AOT 和原生映像檔支援中新增對 LoadBalancer 子內容的支援 (#1135)

Spring Cloud Config

  • 新增執行階段提示以啟用原生支援 (#2174)

下列模組已更新為 2022.0.0-M5 的一部分

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

一如既往,我們歡迎您在 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-M5</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-M5'
  id 'io.spring.dependency-management' version '1.0.14.RELEASE'
  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-M5")
}

dependencyManagement {
  imports {
    mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
  }
}

dependencies {
  compile 'org.springframework.cloud:spring-cloud-starter-config'
  compile 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
}
...
}

取得 Spring 電子報

隨時掌握 Spring 電子報的最新資訊

訂閱

領先一步

VMware 提供訓練和認證,以加速您的進展。

了解更多

取得支援

Tanzu Spring 在一個簡單的訂閱中提供 OpenJDK™、Spring 和 Apache Tomcat® 的支援和二進位檔案。

了解更多

即將到來的活動

查看 Spring 社群中所有即將到來的活動。

查看全部