领先一步
VMware 提供培训和认证,助您加速进步。
了解更多我谨代表社区,很高兴地宣布 Spring Cloud Greenwich Release Train 的 Service Release 5 (SR5) 已于今日发布。您可以在 Maven Central 找到该版本。您还可以查阅 Greenwich 的 发布说明 或 Spring Cloud Project 以获取更多信息。
此版本包含错误修复、小型增强和文档更新。
这是 Greenwich Release Train 的最后一次计划发布(更多详细信息请参见 此处)。我们建议您尽快升级到 Hoxton。Greenwich.SR5 基于 Spring Boot 2.1.12。
为了支持从 YAML 合并列表到配置客户端,我们进行了 一项更改,使得每个 PropertySource 都单独添加到环境中,而不是添加到复合中。
以下模块已作为 Greenwich.SR5 的一部分进行了更新:
| 模块 | 版本 | 问题 |--- |--- |--- |--- | Spring Cloud Build | 2.1.10.RELEASE |
| Spring Cloud Sleuth | 2.1.7.RELEASE | (问题) | Spring Cloud Consul | 2.1.5.RELEASE | (问题) | Spring Cloud Gateway | 2.1.5.RELEASE | (问题) | Spring Cloud Contract | 2.1.5.RELEASE | (问题) | Spring Cloud Netflix | 2.1.5.RELEASE | (问题) | Spring Cloud Gcp | 1.1.5.RELEASE |
| Spring Cloud Config | 2.1.6.RELEASE | (问题) | Spring Cloud Openfeign | 2.1.5.RELEASE | (问题) | Spring Cloud Commons | 2.1.5.RELEASE | (问题) | Spring Cloud Aws | 2.1.4.RELEASE |
| Spring Cloud Vault | 2.1.5.RELEASE |
| Spring Cloud Bus | 2.1.4.RELEASE | (问题) | Spring Cloud Kubernetes | 1.0.5.RELEASE | (问题)
一如既往,我们欢迎大家在 GitHub、Gitter、Stack Overflow 或 Twitter 上提供反馈。
Maven 起步使用 BOM(仅依赖管理)
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>Greenwich.SR5</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.1.12.RELEASE'
id 'io.spring.dependency-management' version '1.0.8.RELEASE'
id 'java'
}
group = 'com.example'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '1.8'
repositories {
mavenCentral()
}
dependencies {
implementation 'org.springframework.cloud:spring-cloud-starter-config'
implementation 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
// ...
}