Spring Cloud 2025.1.0-M1 (又名 Oakwood) 已釋出

版本釋出 | Olga Maciaszek-Sharma | 2025年7月31日 | ...

我很高興代表社群宣佈,Spring Cloud 2025.1 (又名 Oakwood) 釋出列車的里程碑版本1 (M1) 於今日釋出。該版本可在 Maven Central 找到。您可以檢視 2025.1 釋出說明以獲取更多資訊

2025.1.0-M1 版本中的顯著變化

Spring Cloud 2025.0.0-M1 依賴於 Spring Boot 4.0.0-M1。在此檢視所有作為此版本一部分的問題和拉取請求。

Spring Cloud Gateway

  • 移除棄用的 artifact,轉而使用新的 artifact。新的 artifact 是 spring-cloud-gateway-server-web{flux|mvc}spring-cloud-gateway-proxyexchange-web{flux|mvc} #3858
  • Server WebFlux 中的新 API 版本控制謂詞 #3864

Spring Cloud Commons

  • 針對 Spring 介面客戶端自動配置的 LoadBalancer 整合 #1491, #1492
  • 針對 Spring 介面客戶端自動配置的斷路器整合 #1538

Spring Cloud Contract

  • 移除了 javax.injectjavax.annotation 支援 #2206

Spring Cloud Config

  • 移除了所有已棄用的類和方法 (#2908)

Spring Cloud Kubernetes

  • Spring Cloud Kubernetes 的版本已遷移到 5.0.x,以與釋出系列的其他部分保持一致,跳過了 4.0.x 版本

Spring Cloud Circuit Breaker

  • Spring Cloud Circuit Breaker 的版本已遷移到 5.0.x,以與釋出系列的其他部分保持一致,跳過了 4.0.x 版本

Spring Cloud Stream

  • 由於 Reactor Kafka 已停用,Artifact org.springframework.cloud:spring-cloud-stream-binder-kafka-reactive 已被移除。更多資訊請參閱這篇部落格文章

Spring Cloud Consul

  • 用介面客戶端替換了第三方 Consul HTTP 客戶端 #840

以下模組已作為 2025.0.0-M1 的一部分進行更新

模組 版本 問題
Spring Cloud OpenFeign 5.0.0-M1 (問題)
Spring Cloud Config 5.0.0-M1 (問題)
Spring Cloud Build 5.0.0-M1 (問題)
Spring Cloud Stream 5.0.0-M1 (問題)
Spring Cloud Netflix 5.0.0-M1 (問題)
Spring Cloud Circuitbreaker 5.0.0-M1 (問題)
Spring Cloud Contract 5.0.0-M1 (問題)
Spring Cloud Commons 5.0.0-M1 (問題)
Spring Cloud Consul 5.0.0-M1 (問題)
Spring Cloud Gateway 5.0.0-M1 (問題)
Spring Cloud Vault 5.0.0-M1 (問題)
Spring Cloud Function 5.0.0-M1 (問題)
Spring Cloud Dependencies 2025.1.0-M1 (問題)
Spring Cloud Task 5.0.0-M1 (問題)
Spring Cloud Kubernetes 5.0.0-M1 (問題)
Spring Cloud Bus 5.0.0-M1 (問題)
Spring Cloud Zookeeper 5.0.0-M1 (問題)

一如既往,我們歡迎大家在 GitHubStack 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>2025.1.0-M1</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 '4.0.0-M1'
  id 'io.spring.dependency-management' version '1.1.7'
}

//...

ext {
  set('springCloudVersion', "2025.1.0-M1")
}

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

檢視所有