Spring Cloud 2024.0.0-M2 (代號 Moorgate) 已釋出

版本釋出 | Ryan Baxter | 2024 年 10 月 09 日 | ...

我謹代表社群宣佈,Spring Cloud 2024.0.0 Release Train 的 Milestone 2 (M2) 今日釋出。您可以在 Spring Milestone 倉庫中找到該版本。您可以檢視 2024.0.0 版本說明以獲取更多資訊。

2024.0.0-M2 Release Train 的主要變更

此版本的 Spring Cloud 基於 Spring Boot 3.4.0-M3。

此版本的 GitHub 專案可以在此處找到。

Spring Cloud OpenFeign

  • 支援 Pageableignorecase(#1047)

Spring Cloud Commons

  • 建立 TrustStore 而無需 KeyStore(#1394)

Spring Cloud Config

  • 資源可以支援指定字元集進行儲存和接收(#2115)
  • 新增 MongoDB 環境倉庫支援 (#2390)
  • 支援環境倉庫中的多個標籤 (#2449)

Spring Cloud Gateway

  • Webflux Java DSL 增加了一個巢狀布林謂詞的方法(#2598)
  • 為路由添加了一個 enabled 標誌(#3026)
  • Grafana 模板中添加了 QPS、延遲等指標(#3014)
  • 修復了多個路由使用相同 Redis 限流器 bucket 的問題(#2517)

Spring Cloud Stream

Spring Cloud Stream 4.2.0-M2 版本包含一些新增強功能和錯誤修復。有關更多資訊,請參見此處。

有關更多詳細資訊,請參閱 4.2.0-M2 milestone。

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

模組 版本 問題
Spring Cloud Bus 4.2.0-M2 (issues)
Spring Cloud Contract 4.2.0-M2 (issues)
Spring Cloud Circuitbreaker 3.2.0-M2 (issues)
Spring Cloud Zookeeper 4.2.0-M2 (issues)
Spring Cloud Task 3.2.0-M2 (issues)
Spring Cloud Kubernetes 3.2.0-M2 (issues)
Spring Cloud Starter Build 2024.0.0-M2 (issues)
Spring Cloud Netflix 4.2.0-M2 (issues)
Spring Cloud Openfeign 4.2.0-M2 (issues)
Spring Cloud Commons 4.2.0-M2 (issues)
Spring Cloud Consul 4.2.0-M2 (issues)
Spring Cloud Config 4.2.0-M2 (issues)
Spring Cloud Vault 4.2.0-M2 (issues)
Spring Cloud Build 4.2.0-M2 (issues)
Spring Cloud Gateway 4.2.0-M2 (issues)
Spring Cloud Stream 4.2.0-M2 (issues)
Spring Cloud Function 4.2.0-M2 (issues)

一如既往,我們歡迎大家在 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>2024.0.0-M2</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.4.0-M3'
  id 'io.spring.dependency-management' version '1.1.6'
}

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

ext {
  set('springCloudVersion', "2024.0.0-M2")
}

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

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

獲取 Spring 新聞通訊

透過 Spring 新聞通訊保持聯絡

訂閱

領先一步

VMware 提供培訓和認證,助您加速進步。

瞭解更多

獲得支援

Tanzu Spring 提供 OpenJDK™、Spring 和 Apache Tomcat® 的支援和二進位制檔案,只需一份簡單的訂閱。

瞭解更多

即將舉行的活動

檢視 Spring 社群所有即將舉行的活動。

檢視所有