Spring Cloud Edgware.RELEASE 可用

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

我谨代表团队和社区,很高兴地宣布 Spring Cloud Edgware Release Train 的通用可用性 (RELEASE) 版本现已发布。该版本可在 Maven Central 中找到。您可以查看 Edgware 发布说明以获取更多信息

Edgware Release Train 中的主要变更

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,并已启用 verbose 模式
  • 引入了添加自定义 WireMock 扩展的功能
  • 允许在响应体验证中引用 URL 段
  • 添加了在契约中引用文件内容的支持
  • 添加了将映射转储到文件的选项
  • Rest Assured 已升级至 3.0
  • 引入了一个影响插件的回归问题,但在 1.2.1 版本中已修复。插件请使用 1.2.1.RELEASE

Spring Cloud Vault

  • 支持 Kubernetes 和 AWS IAM(需要 AWS Java SDK)身份验证方法。
  • 在引导上下文中通过 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 设置为 true。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 社区所有即将举行的活动。

查看所有