我代表社区很高兴地宣布,Spring Cloud 2024.0.0 Release Train 的 Release Candidate 1 (RC1) 现已推出。该版本可以在 Spring Milestone 存储库中找到。有关更多信息,您可以查看 2024.0.0-RC1 发行说明。
2024.0.0-RC1 版本系列中的显著更改
此版本的 Spring Cloud 基于 Spring Boot 3.4.0-RC1。
可在此处找到此版本的 GitHub 项目。
Spring Cloud 网关
Spring Cloud Netflix
Spring Cloud 公共资源
- 添加对负载均衡的支持 (#1402
RestTemplateBuilder
)
Spring Cloud 配置
- 让 Config Server 处理多个标签而不是客户端 (#2583
Spring Cloud 总线
- 添加 shutdown 事件、endpoint 和侦听器 (#277)
以下模块已作为 2024.0.0-RC1 的一部分进行了更新:
Module | Version | Issues |
---|---|---|
Spring Cloud Bus | 4.2.0-RC1 | (issues) |
Spring Cloud Contract | 4.2.0-M2 | (issues) |
Spring Cloud CircuitBreaker | 3.2.0-M2 | (issues) |
Spring Cloud Zookeeper | 4.2.0-M2 | (issues) |
Spring Cloud Task | 3.2.0-RC1 | (issues) |
Spring Cloud Kubernetes | 3.2.0-RC1 | (issues) |
Spring Cloud Starter Build | 2024.0.0-RC1 | (issues) |
Spring Cloud Netflix | 4.2.0-RC1 | (issues) |
Spring Cloud OpenFeign | 4.2.0-RC1 | (issues) |
Spring Cloud Commons | 4.2.0-RC1 | (issues) |
Spring Cloud Consul | 4.2.0-RC1 | (issues) |
Spring Cloud Config | 4.2.0-RC1 | (issues) |
Spring Cloud Vault | 4.2.0-RC1 | (issues) |
Spring Cloud Build | 4.2.0-RC1 | (issues) |
Spring Cloud Gateway | 4.2.0-RC1 | (issues) |
Spring Cloud Stream | 4.2.0-RC1 | (issues) |
Spring Cloud Function | 4.2.0-RC1 | (issues) |
与往常一样,我们欢迎在 GitHub、Gitter、Stack Overflow 或 Twitter 上提供反馈。
要开始使用带有 BOM 的 Maven(仅限依赖项管理):
要开始使用带有 BOM 的 Maven(仅限依赖项管理):
<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}"
}
}
转自 https://spring.io/blog/2024/11/08/spring-cloud-2024-0-0-rc1-aka-moorgate-has-been-released