Spring Cloud Edgware.RELEASE 已可用

发布 | Spencer Gibb | 2017年11月27日 | ...

我代表团队和社区荣幸地宣布,Spring Cloud Edgware 发布火车版本的通用版本(RELEASE)已于今日发布。该版本可在 Maven Central 中找到。您可以查看 Edgware 版本说明以获取更多信息

Edgware 发布火车版本的显著变化

Spring Cloud Bus

更新以允许 Bus 客户端在独立的包中实现远程事件。

Spring Cloud Task

请参阅宣布 Task 1.2.0 版本的博客文章

Spring Cloud Commons

增加了重试请求时的退避策略支持。

Spring Cloud Stream

请参阅 Ditmars 版本发布公告 以获取更多信息。

Spring Cloud Sleuth

  • 增加了 RestTemplateBuilder 支持
  • Zipkin 2 现在是默认版本
  • spring-cloud-starter-zipkin 现在使用 Zipkin 2,而 spring-cloud-starter-zipkin-legacy 使用 Zipkin 1。
  • 现在,您可以通过将服务ID设置为 Zipkin URL 来通过服务发现找到 Zipkin,例如 spring.zipkin.baseUrl: http://zipkinserver/
  • @Async 方法可以使用 @SpanName 来更改默认的 span 名称

Spring Cloud Security

增加了使用 UserInfoRestTemplate 进行重试的支持。

Spring Cloud Contract

  • WireMock 升级到 2.11.0 并开启了详细模式。
  • 引入了添加自定义 WireMock 扩展的功能。
  • 允许在响应体验证中引用 url 片段。
  • 增加了在契约中引用文件内容的支持。
  • 增加了将映射转储到文件的选项。
  • Rest Assured 升级到 3.0。
  • 引入了一个影响插件的回归错误,但已在 1.2.1 中修复。对于该插件,请使用 1.2.1.RELEASE 版本。

Spring Cloud Vault

  • 支持 Kubernetes 和 AWS IAM(需要 AWS Java SDK)认证方法。
  • 在 bootstrap 上下文中使用 DiscoveryClient 进行 Vault 发现。
  • 配置 PropertySourceLocator 以自定义上下文路径。由 Spring Cloud Vault Connector 用于在 Cloud Foundry 上运行使用 HashiCorp 的 Vault 服务代理 的应用程序。
  • TTL 过期后刷新通用机密信息。
  • 升级到 Spring Vault 1.1。

Spring Cloud Netflix

增加了重试请求时的退避策略支持。

一个可选的 Eureka 客户端,使用 RestTemplate 而非 Jersey 构建。

@EnableDiscoveryClient 现在是可选的。引入 spring-cloud-starter-netflix 将自动假定应用程序应该注册并成为发现客户端。要禁用自动注册,请设置 spring.cloud.service-registry.auto-registration.enabled=false。Hystrix 和 Eureka Server 现在通过 Spring Cloud Contract 进行测试。

Spring Cloud Consul

增加了对近期 Hashicorp Consul 1.0 版本的兼容性。

Consul DiscoveryClient 现在支持 datacenter 参数。现在支持使用自签名证书进行 HTTPS 检查。

Spring Cloud Config

创建了一个新的 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

一如既往,我们欢迎在 GitHubGitterStack OverflowTwitter 上提供反馈。

使用 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'
    ...
}

获取 Spring 新闻简报

订阅 Spring 新闻简报以保持联系

订阅

先人一步

VMware 提供培训和认证,助您快速提升。

了解更多

获取支持

Tanzu Spring 通过一份简单的订阅提供 OpenJDK™、Spring 和 Apache Tomcat® 的支持和二进制文件。

了解更多

即将举行的活动

查看 Spring 社区的所有即将举行的活动。

查看全部