领先一步
VMware 提供培训和认证,助您加速进步。
了解更多我很高兴代表社区宣布 Spring Cloud 2025.1.0 发布列车的通用可用性(RELEASE)已于今日发布。该版本可在 Maven Central 中找到。您可以查看 2025.1.0 发行说明以获取更多信息。
这是一个主要版本,每个项目都已更新到 5.0.0 版本。此版本基于 Spring Framework 7 和 Spring Boot 4。
此版本的所有更改列表可在 2025.1.0 GitHub 项目中找到。
spring-cloud-stater-parent 工件已被移除 (#437)spring-cloud-gateway-server-web{flux|mvc} 和 spring-cloud-gateway-proxyexchange-web{flux|mvc} #3858spring-cloud-circuitbreaker-spring-retry 已进入仅维护模式,并将在 Spring Retry 不再受支持时移除。org.springframework.cloud:spring-cloud-stream-binder-kafka-reactive 已被移除,因为 Reactor Kafka 已停止开发。请参阅 此博客文章 以获取更多信息。javax.inject 和 javax.annotation 支持 #2206management.info.leader.enabled=false 来禁用 Leader election info contributor (#2085)以下模块作为 2025.1.0 的一部分进行了更新
| 模块 | 版本 | 问题 |
|---|---|---|
| Spring Cloud Stream | 5.0.0 | (问题) |
| Spring Cloud Netflix | 5.0.0 | (问题) |
| Spring Cloud Starter Build | 2025.1.0 | (问题) |
| Spring Cloud Commons | 5.0.0 | (问题) |
| Spring Cloud Circuitbreaker | 5.0.0 | (问题) |
| Spring Cloud Gateway | 5.0.0 | (问题) |
| Spring Cloud Config | 5.0.0 | (问题) |
| Spring Cloud Build | 5.0.0 | (问题) |
| Spring Cloud Consul | 5.0.0 | (问题) |
| Spring Cloud Function | 5.0.0 | (问题) |
| Spring Cloud Contract | 5.0.0 | (问题) |
| Spring Cloud Vault | 5.0.0 | (问题) |
| Spring Cloud Task | 5.0.0 | (问题) |
| Spring Cloud Kubernetes | 5.0.0 | (问题) |
| Spring Cloud Openfeign | 5.0.0 | (问题) |
| Spring Cloud Zookeeper | 5.0.0 | (问题) |
| Spring Cloud Bus | 5.0.0 | (问题) |
一如既往,我们欢迎大家在 GitHub、Gitter、Stack Overflow 或 Twitter 上提供反馈。
Maven 起步使用 BOM(仅依赖管理)
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>2025.1.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 '4.0.0'
id 'io.spring.dependency-management' version '1.1.7'
}
group = 'com.example'
version = '0.0.1-SNAPSHOT'
description = 'Demo project for Spring Boot'
repositories {
mavenCentral()
}
ext {
set('springCloudVersion', "2025.1.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}"
}
}