Spring Cloud 2024.0.0 (又名 Moorgate) 現已釋出

版本釋出 | Olga Maciaszek-Sharma | 2024年12月3日 | ...

我很高興代表社群宣佈,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 伺服器中實現 ModifyResponseBody (#3189
  • 使用新的 Spring Boot HTTP 客戶端自動配置框架 (#3571
  • 為路由添加了一個啟用標誌 (#3026)
  • 快取閘道器過濾器以避免在每個請求中進行排序(#2756
  • 在 HttpClientProperties 中支援 SslBundles(#2981
  • 為 Netty 的 http 客戶端池租賃策略提供配置(#3575

Spring Cloud Kubernetes

  • 添加了對配置監視器的支援,以便關閉應用程式以重新整理應用程式(#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 社群所有即將舉行的活動。

檢視所有