先人一步
VMware 提供培训和认证,助您快速提升。
了解更多我代表团队和社区荣幸地宣布,Spring Cloud Edgware 发布火车版本的通用版本(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
。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'
...
}