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

釋出 | Olga Maciaszek-Sharma | 2024 年 11 月 08 日 | ...

我很高興代表社群宣佈,Spring Cloud 2024.0.0 Release Train 的 Release Candidate 1 (RC1) 版本今天已釋出。該版本可在Spring Milestone 倉庫中找到。您可以檢視 2024.0.0-RC1 釋出說明以獲取更多資訊

2024.0.0-RC1 Release Train 的顯著變化

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

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

Spring Cloud Gateway

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

Spring Cloud Netflix

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

Spring Cloud Commons

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

Spring Cloud Config

  • 讓 Config Server 處理多個標籤而不是客戶端 (#2583

Spring Cloud Bus

  • 新增 shutdown 事件、endpoint 和 listener (#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 社群的所有即將舉行的活動。

檢視全部