領先一步
VMware 提供訓練與認證,加速您的進展。
瞭解更多我謹代表社群宣布,Spring Cloud 2021.0 發佈列車的 Service Release 2 今天正式發佈。本次發佈主要為錯誤修正版本。您可以在 Maven Central 找到此版本。您可以查閱 2021.0.2 發佈說明 以取得更多資訊。
請參閱 專案頁面 以查看此版本中包含的所有問題。
ServiceInstance
的無埠 URI ([1054]https://github.com/spring-cloud/spring-cloud-commons/pull/1054))以下模組已作為 2021.0.2 的一部分進行更新
模組 | 版本 | 問題 |
---|---|---|
Spring Cloud Config | 3.1.2 | (issues) |
Spring Cloud Circuitbreaker | 2.1.2 | (issues) |
Spring Cloud Kubernetes | 2.1.2 | (issues) |
Spring Cloud Commons | 3.1.2 | (issues) |
Spring Cloud Sleuth | 3.1.2 | (issues) |
Spring Cloud Contract | 3.1.2 | (issues) |
Spring Cloud Task | 2.4.2 | (issues) |
Spring Cloud Gateway | 3.1.2 | (issues) |
Spring Cloud OpenFeign | 3.1.2 | (issues) |
Spring Cloud Starter Build | 2021.0.2 | |
Spring Cloud Netflix | 3.1.2 | (issues) |
Spring Cloud Function | 3.2.4 | |
Spring Cloud Stream | 3.2.3 |
一如既往,我們歡迎您在 GitHub、Gitter、Stack Overflow 或 Twitter 上提供意見回饋。
若要開始使用 Maven 及 BOM (僅依賴管理)
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>2021.0.2</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 'org.springframework.boot' version '2.6.7'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'java'
}
repositories {
mavenCentral()
}
ext {
set('springCloudVersion', "2021.0.2")
}
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}"
}
}