领先一步
VMware 提供培训和认证,助您加速进步。
了解更多我谨代表社区,很高兴地宣布 Spring Cloud 2020 Release Train 的 Milestone 5 (M5) 今日发布。您可以在 Spring Milestone 仓库中找到此版本。有关更多信息,您可以查看 2020 发行说明。
此版本需要 Spring Boot 2.4.0。
Sleuth 中增加了对 OpenTelemetry 的支持。
Bus 中增加了对 RSocket 的支持。
请参阅 Wiki 以获取此 Release Train 中所有重大更改的列表。
请在 Github 项目 中查看所有包含的问题和拉取请求。
通过 Spring Cloud Function RSocket 支持,增加了对 RSocket 的支持。这不需要 Spring Cloud Stream。
在响应式 Spring Cloud Loadbalancer 中增加了对 重试 的支持。
git 环境仓库中增加了对 子模块 的支持。
增加了对处理响应中空列表和映射的支持,已添加。
Token Relay 支持已从 Spring Cloud Security 迁移到 Gateway。还添加了 Token 刷新功能。
基于官方 Kubernetes Java Client 的新模块已添加。
EurekaHealthCheckHandler 现在考虑 ReactiveHealthIndicator。
添加了配置客户端发送默认标头和查询参数的功能。
Token Relay 支持已移至 Spring Cloud Gateway(见上文)。
对 OpenTelemetry 的支持已添加。
作为 2020.0.0-M5 的一部分,以下模块已更新:
| 模块 | 版本 | 问题 |---|---|---|---| | Spring Cloud Bus | 3.0.0-M5 | (issues) | Spring Cloud Circuitbreaker | 2.0.0-M5 | (issues) | Spring Cloud Cli | 3.0.0-M5 |
| Spring Cloud Cloudfoundry | 3.0.0-M5 |
| Spring Cloud Commons | 3.0.0-M5 | (issues) | Spring Cloud Config | 3.0.0-M5 | (issues) | Spring Cloud Consul | 3.0.0-M5 |
| Spring Cloud Contract | 3.0.0-M5 | (issues) | Spring Cloud Gateway | 3.0.0-M5 |
| Spring Cloud Kubernetes | 2.0.0-M5 | (issues) | Spring Cloud Netflix | 3.0.0-M5 | (issues) | Spring Cloud Openfeign | 3.0.0-M5 | (issues) | Spring Cloud Security | 3.0.0-M5 |
| Spring Cloud Sleuth | 3.0.0-M5 | (issues) | 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'
//...
}