领先一步
VMware 提供培训和认证,助您加速进步。
了解更多我谨代表社区,很高兴地宣布 Spring Cloud 2020.0 Release Train 的 Service Release 1 (2020.0.1) 今日发布。您可以在 Maven Central 中找到此版本。您可以查阅 2020.0 的 发行说明以获取更多信息。
本次发布主要用于错误修复和依赖升级。
请参阅 此页面 查看已知问题列表。
请参阅 Wiki 查看此发布系列中所有破坏性更改的列表。
您可以在 Github 项目 中查看所有包含的 issue 和 pull request。
所有 已知问题 均已修复。
发现了一个新的 已知问题,即 spring.config.import=consul: 不支持重试。
Config 模块中上下文顺序不正确的问题已得到修复。
Config 模块中上下文顺序不正确的问题已得到修复。
以下模块已作为 2020.0.0 的一部分进行了更新:
| 模块 | 版本 | 问题 |
|---|---|---|
| Spring Cloud Circuitbreaker | 2.0.0 | |
| Spring Cloud Contract | 3.0.1 | |
| Spring Cloud Kubernetes | 2.0.1 | |
| Spring Cloud Commons | 3.0.1 | |
| Spring Cloud Openfeign | 3.0.1 | |
| Spring Cloud Cloudfoundry | 3.0.0 | |
| Spring Cloud Bus | 3.0.1 | |
| Spring Cloud CLI | 3.0.1 | |
| Spring Cloud Zookeeper | 3.0.1 | |
| Spring Cloud Sleuth | 3.0.1 | |
| Spring Cloud Consul | 3.0.1 | |
| Spring Cloud Starter Build | 2020.0.1 | |
| Spring Cloud Gateway | 3.0.1 | |
| Spring Cloud Netflix | 3.0.1 | |
| Spring Cloud Vault | 3.0.1 | |
| Spring Cloud Config | 3.0.2 | |
| Spring Cloud Task | 2.3.0 |
一如既往,我们欢迎大家在 GitHub、Gitter、Stack Overflow 或 Twitter 上提供反馈。
Maven 起步使用 BOM(仅依赖管理)
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>2020.0.1</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.11.RELEASE"
}
}
apply plugin: "io.spring.dependency-management"
dependencyManagement {
imports {
mavenBom 'org.springframework.cloud:spring-cloud-dependencies:2020.0.1'
}
}
dependencies {
compile 'org.springframework.cloud:spring-cloud-starter-config'
compile 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
//...
}