Spring Cloud 2024.0.0-RC1 (又名 Moorgate) 已釋出

版本釋出 | Olga Maciaszek-Sharma | 2024年11月8日 | ...

我很高興代表社群宣佈 Spring Cloud 2024.0.0 釋出列車的候選版本1 (RC1) 於今日釋出。該版本可在 Spring Milestone 倉庫中找到。您可以檢視 2024.0.0-RC1 的釋出說明以獲取更多資訊

2024.0.0-RC1 釋出列車中的顯著變化

此 Spring Cloud 版本基於 Spring Boot 3.4.0-RC1。

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

Spring Cloud Gateway

  • 在 MVC 伺服器中實現 ModifyResponseBody (#3189
  • 使用新的 Spring Boot HTTP 客戶端自動配置框架 (#3571

Spring Cloud Netflix

  • 新增 RestClient 支援並使其成為 SC Netflix Eureka 使用的預設 HTTP 客戶端 (#4257, #4363)

Spring Cloud Commons

  • 新增對負載均衡的 RestTemplateBuilder 的支援 (#1402)

Spring Cloud Config

  • 讓配置伺服器處理多個標籤而非客戶端 (#2583

Spring Cloud Bus

  • 新增關閉事件、端點和監聽器 (#277)

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

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

一如既往,我們歡迎大家在 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-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 'java'
  id 'org.springframework.boot' version '3.4.0-RC1'
  id 'io.spring.dependency-management' version '1.1.6'
}

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

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

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

檢視所有