领先一步
VMware 提供培训和认证,助您加速进步。
了解更多我谨代表团队和社区,很高兴地宣布 Spring Cloud Edgware Release Train 的通用可用性 (RELEASE) 版本现已发布。该版本可在 Maven Central 中找到。您可以查看 Edgware 发布说明以获取更多信息。
更新允许 Bus 客户端在独立包中实现远程事件。
请参阅 博文,了解 Task 1.2.0 的发布。
增加了在重试请求时支持退避策略。
有关更多信息,请参阅 Ditmars 版本公告。
RestTemplateBuilder 支持spring-cloud-starter-zipkin 现在使用 Zipkin 2,而 spring-cloud-starter-zipkin-legacy 使用 Zipkin 1。spring.zipkin.baseUrl: http://zipkinserver/@Async 方法可以使用 @SpanName 来更改默认的 span 名称添加了对使用 UserInfoRestTemplate 进行重试的支持。
1.2.1 版本中已修复。插件请使用 1.2.1.RELEASE。DiscoveryClient 进行 Vault 发现。PropertySourceLocator 进行配置以自定义上下文路径。由 Spring Cloud Vault Connector 用于在 Cloud Foundry 上运行带有 HashiCorp 的 Vault 服务代理 的应用程序。增加了在重试请求时支持退避策略。
可选的 Eureka 客户端,使用 RestTemplate 而不是 Jersey 构建。
@EnableDiscoveryClient 现在是可选的。包含 spring-cloud-starter-netflix 将自动假定应用程序应注册并成为发现客户端。要禁用自动注册,请将 spring.cloud.service-registry.auto-registration.enabled=false 设置为 true。Hystrix 和 Eureka Server 现在通过 Spring Cloud Contract 进行测试。
添加了与最近的 Hashicorp Consul 1.0 版本兼容的功能。
Consul DiscoveryClient 现在支持 datacenter 参数。现在支持具有自签名证书的 HTTPS 检查。
创建了一个新的 JDBC EnvironmentRepository。
作为 Edgware.RELEASE 的一部分,以下模块已更新。
| 模块 | 版本 |
|---|---|
| Spring Cloud Config | 1.4.0.RELEASE |
| Spring Cloud Task | 1.2.2.RELEASE |
| Spring Cloud Commons | 1.3.0.RELEASE |
| Spring Cloud Stream | Ditmars.RELEASE |
| Spring Cloud Zookeeper | 1.2.0.RELEASE |
| Spring Cloud Sleuth | 1.3.0.RELEASE |
| Spring Cloud Gateway | 1.0.0.RELEASE |
| Spring Cloud Cloudfoundry | 1.1.0.RELEASE |
| Spring Cloud Contract | 1.2.0.RELEASE |
| Spring Cloud Security | 1.2.1.RELEASE |
| Spring Cloud Aws | 1.2.2.RELEASE |
| Spring Cloud Vault | 1.1.0.RELEASE |
| Spring Cloud Netflix | 1.4.0.RELEASE |
| Spring Cloud Bus | 1.3.2.RELEASE |
| Spring Cloud Consul | 1.3.0.RELEASE |
一如既往,我们欢迎在 GitHub、Gitter、Stack Overflow 或 Twitter 上提供反馈。
Maven 起步使用 BOM(仅依赖管理)
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>Edgware.RELEASE</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-eureka</artifactId>
</dependency>
...
</dependencies>
或使用 Gradle
buildscript {
dependencies {
classpath "io.spring.gradle:dependency-management-plugin:1.0.2.RELEASE"
}
}
apply plugin: "io.spring.dependency-management"
dependencyManagement {
imports {
mavenBom 'org.springframework.cloud:spring-cloud-dependencies:Edgware.RELEASE'
}
}
dependencies {
compile 'org.springframework.cloud:spring-cloud-starter-config'
compile 'org.springframework.cloud:spring-cloud-starter-eureka'
...
}