领先一步
VMware 提供培训和认证,助您加速进步。
了解更多我谨代表社区,很高兴地宣布 Spring Cloud Greenwich Release Train 的 Service Release 2 (SR2) 今日发布。您可以在 Maven Central 找到该版本。您可以查阅 Greenwich 版本说明 以获取更多信息。
所有项目都与 Spring 的 nohttp 工作协调一致进行了更新。
通过 Reactor 和 Reactor Netty 进行了许多更新和修复。当启用 Retry 或使用 Read Body Predicate 时,Gateway 还可以有效地缓存请求体。
允许在嵌入模式下运行 Config Server 时使用 Vault。
增加了对 Spring HATEOAS Resources 的支持。
增加了基于活动配置文件包含 ConfigMaps 的支持。
Gradle 插件现已发布到 Gradle 插件门户。
作为 Greenwich.SR2 的一部分,以下模块已更新:
| 模块 | 版本 | 问题 |--- |--- |--- |--- | Spring Cloud Task | 2.1.2.RELEASE | | Spring Cloud Config | 2.1.3.RELEASE | (问题) | Spring Cloud Stream | Fishtown.SR3 | (问题) | Spring Cloud Sleuth | 2.1.2.RELEASE | (问题) | Spring Cloud Commons | 2.1.2.RELEASE | (问题) | Spring Cloud Openfeign | 2.1.2.RELEASE | (问题) | Spring Cloud Kubernetes | 1.0.2.RELEASE | (问题) | Spring Cloud Aws | 2.1.2.RELEASE | | Spring Cloud Vault | 2.1.2.RELEASE | | Spring Cloud Function | 2.0.2.RELEASE | (问题) | Spring Cloud Bus | 2.1.2.RELEASE | (问题) | Spring Cloud Build | 2.1.6.RELEASE | | Spring Cloud Zookeeper | 2.1.2.RELEASE | | Spring Cloud Gcp | 1.1.2.RELEASE | | Spring Cloud Contract | 2.1.2.RELEASE | (问题) | Spring Cloud Consul | 2.1.2.RELEASE | (问题) | Spring Cloud Security | 2.1.3.RELEASE | | Spring Cloud Gateway | 2.1.2.RELEASE | (问题) | Spring Cloud Cloudfoundry | 2.1.2.RELEASE | | Spring Cloud Netflix | 2.1.2.RELEASE | (问题)
一如既往,我们欢迎您在 GitHub、Gitter、Stack Overflow 或 Twitter 上提供反馈。
要开始使用 Maven 的 BOM(仅依赖管理)
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>Greenwich.SR2</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.8.RELEASE"
}
}
apply plugin: "io.spring.dependency-management"
dependencyManagement {
imports {
mavenBom 'org.springframework.cloud:spring-cloud-dependencies:Greenwich.SR2'
}
}
dependencies {
compile 'org.springframework.cloud:spring-cloud-starter-config'
compile 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
...
}