抢先一步
VMware 提供培训和认证,助您飞速提升。
了解更多我谨代表社区高兴地宣布,Spring Cloud Hoxton Release Train 的 Service Release 3 (SR3) 于今日发布。该版本可在 Maven Central 中找到。更多信息请查阅 Hoxton 发布说明。
Spring Cloud Config 包含了针对 CVE-2020-5405 的修复。
此里程碑版本主要是一个错误修复版本。
请查看 Hoxton.SR3 的 Github 项目 以了解所有已关闭的问题。
此里程碑版本基于 Spring Boot 2.2.5.RELEASE 构建。
注意:可写入的 env
端点已默认禁用。要重新启用此功能,请设置 management.endpoint.env.post.enabled=true
。请确保此端点不是公开可访问的。
添加了覆盖 ConfigTokenProvider
的可能性。修复了 KeyStoreTestEncryptorLocator
的性能问题。
在 StubRunner 中添加了对 Spring Cloud LoadBalancer 的支持。
添加了预先创建和定制断路器的支持。
在 Spring Cloud LoadBalancer 中添加了对实例健康检查的支持。LoadBalancer 请求上下文通过 API 暴露。
OpenFeign 已升级至 10.7.4。添加了对 @MatrixVariable
的支持。
添加了对 FeignBlockingLoadBalancerClient
的支持。
添加了对低于 1 req/s 速率限制的支持。增强了 RetryFilter
。将 ServiceInstance
元数据添加到 RouteDefinition
元数据中。为 spring-cloud-gateway-mvc 提供了 Header 配置列表。
以下模块作为 Hoxton.SR3 的一部分进行了更新:
| Module | Version | Issues |--- |--- |--- |--- | Spring Cloud Config | 2.2.2.RELEASE | (issues) | Spring Cloud Cloudfoundry | 2.2.1.RELEASE |
| Spring Cloud Vault | 2.2.2.RELEASE | (issues) | Spring Cloud Aws | 2.2.1.RELEASE |
| Spring Cloud Bus | 2.2.1.RELEASE |
| Spring Cloud Cli | 2.2.1.RELEASE |
| Spring Cloud Gcp | 1.2.2.RELEASE |
| Spring Cloud Contract | 2.2.2.RELEASE | (issues) | Spring Cloud Consul | 2.2.2.RELEASE |
| Spring Cloud Starter | Hoxton.SR3 |
| Spring Cloud Dependencies | Hoxton.SR3 |
| Spring Cloud Starter Parent | Hoxton.SR3 |
| Spring Cloud Sleuth | 2.2.2.RELEASE | (issues) | Spring Cloud Commons | 2.2.2.RELEASE | (issues) | Spring Cloud Openfeign | 2.2.2.RELEASE | (issues) | Spring Cloud Zookeeper | 2.2.0.RELEASE |
| Spring Cloud Kubernetes | 1.1.2.RELEASE | (issues) | Spring Cloud Security | 2.2.1.RELEASE |
| Spring Cloud Circuitbreaker | 1.0.2.RELEASE | (issues) | Spring Cloud Stream | Horsham.SR3 | (issues) | Spring Cloud Gateway | 2.2.2.RELEASE | (issues) | Spring Cloud Netflix | 2.2.2.RELEASE | (issues) | Spring Cloud Function | 3.0.3.RELEASE |
| Spring Cloud Task | 2.2.3.RELEASE |
一如既往,我们欢迎通过 GitHub、Gitter、Stack Overflow 或 Twitter 提供反馈。
使用 BOM (仅依赖管理) 开始使用 Maven
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>Hoxton.SR3</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"
}
}
apply plugin: "io.spring.dependency-management"
dependencyManagement {
imports {
mavenBom 'org.springframework.cloud:spring-cloud-dependencies:Hoxton.SR3'
}
}
dependencies {
compile 'org.springframework.cloud:spring-cloud-starter-config'
compile 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
...
}