更進一步
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}"
}
}