領先一步
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}"
}
}