抢占先机
VMware 提供培训和认证,以加速您的进步。
了解更多我谨代表社区宣布 Spring Cloud Greenwich Release Train 的 Service Release 5 (SR5) 今天发布。该版本可以在 Maven Central 中找到。 您可以查看 Greenwich 发行说明 或 Spring Cloud 项目 了解更多信息。
此版本包含错误修复、小幅增强和文档更新。
这是 Greenwich Release Train 的最终计划版本(有关更多详细信息,请参阅 此处)。 我们建议您尽快升级到 Hoxton。 Greenwich.SR5 基于 Spring Boot 2.1.12。
为了支持从 config client 中的 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 上提供反馈。
开始使用带有 BOM 的 Maven(仅依赖项管理)
<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'
// ...
}