更进一步
VMware 提供培训和认证,助力您快速进步。
了解更多我代表社区很高兴地宣布,Spring Cloud 2024.0.0 发布列的正式发布版本(RELEASE)现已可用。该版本可在 Maven Central 中找到。您可以查阅 2024.0 发布说明了解更多信息。
此版本基于 Spring Boot 3.4.0 和 Spring Framework 6.2.0。
查看 2024.0.0 GA 中的所有问题
RestTemplateBuilder
的支持 (#1402)以下模块已作为 2024.0.0 的一部分进行了更新
模块 | 版本 | 问题 |
---|---|---|
Spring Cloud Build | 4.2.0 | (问题) |
Spring Cloud Bus | 4.2.0 | (问题) |
Spring Cloud Circuitbreaker | 3.2.0 | (问题) |
Spring Cloud Commons | 4.2.0 | (问题) |
Spring Cloud Config | 4.2.0 | (问题) |
Spring Cloud Consul | 4.2.0 | (问题) |
Spring Cloud Contract | 4.2.0 | (问题) |
Spring Cloud Function | 4.2.0 | (问题) |
Spring Cloud Gateway | 4.2.0 | (问题) |
Spring Cloud Kubernetes | 3.2.0 | (问题) |
Spring Cloud Netflix | 4.2.0 | (问题) |
Spring Cloud Openfeign | 4.2.0 | (问题) |
Spring Cloud Starter Build | 2024.0.0 | (问题) |
Spring Cloud Stream | 4.2.0 | (问题) |
Spring Cloud Task | 3.2.0 | (问题) |
Spring Cloud Vault | 4.2.0 | (问题) |
Spring Cloud Zookeeper | 4.2.0 | (问题) |
一如既往,我们欢迎在 GitHub、Stack Overflow 或 Twitter/X 上提供反馈。
使用 Maven 引入 BOM(仅依赖管理)开始入门
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>2024.0.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 '3.4.0'
id 'io.spring.dependency-management' version '1.1.6'
}
repositories {
mavenCentral()
maven { url 'https://repo.spring.io/milestone' }
}
ext {
set('springCloudVersion', "2024.0.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}"
}
}