Spring Cloud 2024.0.0 (即 Moorgate) 現已釋出

釋出 | Olga Maciaszek-Sharma | 2024 年 12 月 03 日 | ...

我代表社群很高興地宣佈,Spring Cloud 2024.0.0 釋出列的正式釋出版本(RELEASE)現已可用。該版本可在 Maven Central 中找到。您可以查閱 2024.0 釋出說明了解更多資訊


2024.0 釋出列的顯著變化

此版本基於 Spring Boot 3.4.0 和 Spring Framework 6.2.0

檢視 2024.0.0 GA 中的所有問題

Spring Cloud Bus

  • 添加了關機事件、端點和監聽器 (#277)

Spring Cloud CircuitBreaker

  • TimeLimiter 支援按組或例項級別停用 (#202)

Spring Cloud Commons

  • 添加了對負載均衡的 RestTemplateBuilder 的支援 (#1402)

Spring Cloud Config

  • 添加了對 MongoDB 環境倉庫的支援 (#2390)
  • S3 後端在使用多個應用名稱時行為不同 (#2642)

Spring Cloud Gateway

  • 在 MVC Server 中實現 ModifyResponseBody (#3189
  • 使用新的 Spring Boot http client 自動配置框架 (#3571
  • 為路由添加了 enabled 標誌 (#3026)
  • 快取閘道器過濾器以避免在每次請求中進行排序 (#2756)
  • HttpClientProperties 中對 SslBundles 的支援 (#2981)
  • 提供了 Netty http 客戶端連線池租用策略的配置 (#3575)

Spring Cloud Kubernetes

  • 添加了對配置監聽器(configuration watcher)的支援,用於在重新整理應用時關閉應用 (#1799)

Spring Cloud Netflix

  • 為 Eureka Client 添加了 RestClient HTTP 客戶端實現 (#4257, #4363)

Spring Cloud Stream

  • 確保 BindingServiceProperties.bindings 的執行緒安全 #3011
  • PostProcessing 功能不適用於 Supplier #3009
  • 修改 DefaultBinderFactory 類中 getBinder 方法對 synchronized 的使用,以符合虛擬執行緒的要求 #3005

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

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

反饋

一如既往,我們歡迎在 GitHubStack OverflowTwitter/X 上提供反饋。

入門

使用 Maven 引入 BOM(僅依賴管理)開始入門

<dependencyManagement>
   <dependencies>
       <dependency>
           <groupId>org.springframework.cloud</groupId>
           <artifactId>spring-cloud-dependencies</artifactId>
           <version>2024.0.0</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'
    id 'io.spring.dependency-management' version '1.1.6'
}

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

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

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

檢視全部