领先一步
VMware 提供培训和认证,助您加速进步。
了解更多我很高兴代表社区宣布,Spring Cloud 2025.1.0 Release Train 的 Release Candidate 1 (RC1) 已于今日发布。该版本可在 Spring Milestone 仓库中找到。您可以查看 2025.1.0 发布说明以获取更多信息。
此版本的亮点包括支持 Spring Boot 4.0.0-RC2,Jackson 3 支持的更新,JSpecify Null-Safety 的初步支持,依赖项更新和错误修复。
此版本的完整更改列表可在 2025.1.0-RC1 GitHub 项目中找到。
ewcid-api (#475)。management.info.leader.enabled=false 来禁用 Leader election 信息贡献者 (#2085)。spring-cloud-circuitbreaker-spring-retry 已进入仅维护模式,并将在 Spring Retry 不再受支持时删除。以下模块已作为 2025.1.0-RC1 的一部分进行更新:
| 模块 | 版本 | 问题 |
|---|---|---|
| Spring Cloud Function | 5.0.0-RC1 | (问题) |
| Spring Cloud Zookeeper | 5.0.0-RC1 | (问题) |
| Spring Cloud Consul | 5.0.0-RC1 | (问题) |
| Spring Cloud Gateway | 5.0.0-RC1 | (问题) |
| Spring Cloud Bus | 5.0.0-RC1 | (问题) |
| Spring Cloud Commons | 5.0.0-RC1 | (问题) |
| Spring Cloud Vault | 5.0.0-RC1 | (问题) |
| Spring Cloud Stream | 5.0.0-RC1 | (问题) |
| Spring Cloud Openfeign | 5.0.0-RC1 | (问题) |
| Spring Cloud Netflix | 5.0.0-RC1 | (问题) |
| Spring Cloud Config | 5.0.0-RC1 | (问题) |
| Spring Cloud Build | 5.0.0-RC1 | (问题) |
| Spring Cloud Contract | 5.0.0-RC1 | (问题) |
| Spring Cloud Starter Build | 2025.1.0-RC1 | (问题) |
| Spring Cloud Task | 5.0.0-RC1 | (问题) |
| Spring Cloud Kubernetes | 5.0.0-RC1 | (问题) |
| Spring Cloud Circuitbreaker | 5.0.0-RC1 | (问题) |
一如既往,我们欢迎大家在 GitHub、Gitter、Stack Overflow 或 Twitter 上提供反馈。
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-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 '4.0.0-RC2'
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-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}"
}
}
//...