領先一步
VMware 提供培訓和認證,以加速您的進度。
了解更多我很高興代表社群宣布 Spring Cloud 2020 Release Train 的 Milestone 5 (M5) 今天已發布。 該版本可在 Spring Milestone 儲存庫中找到。 您可以查看 2020 發布說明以獲取更多資訊。
此版本需要 Spring Boot 2.4.0。
Sleuth 中新增了對 OpenTelemetry 的支援。
Bus 中新增了對 RSocket 的支援。
請參閱 wiki 以獲取此版本列車中所有重大變更的清單。
請在 Github 專案 中查看所有包含的議題和 Pull Request。
透過 Spring Cloud Function RSocket 支援新增了對 RSocket 的支援。 這不需要 Spring Cloud Stream。
在反應式 Spring Cloud Loadbalancer 中新增了對 retry 的支援。
Submodule 支援已新增至 git Environment Repositories。
新增 了對處理回應中空白清單和映射的支援。
Token Relay 支援已從 Spring Cloud Security 遷移到 Gateway。 還新增了 Token 更新。
新增了基於官方 Kubernetes Java Client 的新模組 added。
EurekaHealthCheckHandler
現在考慮 ReactiveHealthIndicator
。
新增了 配置用戶端以發送預設標頭和查詢參數的能力。
Token Relay 支援已移至 Spring Cloud Gateway(請參閱上文)。
新增 了對 OpenTelemetry 的支援。
下列模組已更新為 2020.0.0-M5 的一部分
| 模組 | 版本 | 議題 |--- |--- |--- |--- | Spring Cloud Bus | 3.0.0-M5 | (議題) | Spring Cloud Circuitbreaker | 2.0.0-M5 | (議題) | Spring Cloud Cli | 3.0.0-M5 |
| Spring Cloud Cloudfoundry | 3.0.0-M5 |
| Spring Cloud Commons | 3.0.0-M5 | (議題) | Spring Cloud Config | 3.0.0-M5 | (議題) | Spring Cloud Consul | 3.0.0-M5 |
| Spring Cloud Contract | 3.0.0-M5 | (議題) | Spring Cloud Gateway | 3.0.0-M5 |
| Spring Cloud Kubernetes | 2.0.0-M5 | (議題) | Spring Cloud Netflix | 3.0.0-M5 | (議題) | Spring Cloud Openfeign | 3.0.0-M5 | (議題) | Spring Cloud Security | 3.0.0-M5 |
| Spring Cloud Sleuth | 3.0.0-M5 | (議題) | Spring Cloud Starter Build | 2020.0.0-M5 |
| Spring Cloud Vault | 3.0.0-M5 |
| Spring Cloud Zookeeper | 3.0.0-M5 |
與往常一樣,我們歡迎在 GitHub、Gitter、Stack Overflow 或 Twitter 上提供意見反應。
開始使用 Maven 和 BOM(僅依賴項管理)
<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>2020.0.0-M5</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
buildscript {
dependencies {
classpath "io.spring.gradle:dependency-management-plugin:1.0.9.RELEASE"
}
}
repositories {
maven {
url 'https://repo.spring.io/milestone'
}
}
apply plugin: "io.spring.dependency-management"
dependencyManagement {
imports {
mavenBom 'org.springframework.cloud:spring-cloud-dependencies:2020.0.0-M5'
}
}
dependencies {
compile 'org.springframework.cloud:spring-cloud-starter-config'
compile 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
//...
}