Spring Cloud Dalston RC1 发布

版本发布 | Ryan Baxter | 2017年3月21日 | ...

我谨代表社区,很高兴地宣布 Spring Cloud Dalston Release Train 的候选发布 1 (RC1) 版本今天可用。该版本可以在我们的 Spring Milestone 仓库中找到。您可以查看 Dalston 的 发布说明以获取更多信息

Dalston 发布列车中的显著变化

Vault

Spring Cloud Vault Config 是一个新项目,它通过 Hashicorp Vault 为分布式系统中的外部化密钥管理提供客户端支持。

Config Server

Config Server 现在通过 Composite 模式支持多个后端。这使得之前不可能的后端类型组合成为可能,例如:Vault 和 git 或多个 git 后端。现在支持 AWS Codecommit 托管的 git 仓库的身份验证。在之前的 (Camden) 版本中,Hashicorp Vault 已被添加为 Config Server 的后端,以配合基于 VCS 的后端。

Spring Cloud Commons

自核心 Spring Cloud 模块 (Commons, Config, Netflix, Bus) 诞生以来,DiscoveryClient 的实现会自动将正在运行的客户端注册到发现服务器。这是最初的 Netflix Eureka 实现的副作用。现在,服务注册和已注册服务的发现是分开的关注点。现在有一个 ServiceRegistry 接口,Spring Cloud Netflix、Consul 和 Zookeeper 都实现了它。默认情况下,客户端仍然会自动注册,但这可以通过 @EnableDiscoveryClientautoRegister 属性或通过属性动态禁用。这还允许将多个服务 per JVM 以编程方式注册。有关更多详细信息,请关注未来的博客文章。

社区贡献了对 @LoadBalanced AsyncRestTemplate 的支持。

Sleuth

Sleuth 中已添加对通用上下文传播系统的支持。它被称为“baggage”,并允许使用 Sleuth 已有的内置工具,通过 HTTP 或消息等边界传递任意属性。

另一个特性是基于注解的 Span 创建以及日志和标签的添加。这不仅生成了更少的样板代码,而且在处理在运行时生成实现的框架(如 Spring Data)时也很有用。

Contract

Contract 得到了增强,以支持合同输入和输出的更大灵活性。增加了 Pact 支持以读取合同,而不是 Groovy DSL。Contract 变得更具可插拔性,允许自定义 DSL 格式、测试和 Stub 生成以及 Stub Runner 实现。

Consul

除了支持新的 ServiceRegistry API,Spring Cloud Consul 还支持 Consul 的功能,即注销僵尸服务(即,在可配置的时间内健康检查失败的服务将从 Consul 中移除)。

其他

Dalston 基于 Spring Boot 1.5.x,这是最低要求版本。其他变化包括各种库的升级、bug 修复、文档和完善。非常感谢社区对 pull requests 和 issue 的所有贡献。

以下模块作为 Dalston.RC1 的一部分进行了更新:

模块 版本
Spring Cloud AWS 1.2.0.RC1
Spring Cloud Build 1.3.1.RELEASE
Spring Cloud Bus 1.3.0.M1
Spring Cloud Cloudfoundry 1.1.0.M1
Spring Cloud Commons 1.2.0.RC1
Spring Cloud Config 1.3.0.RC1
Spring Cloud Consul 1.2.0.RC1
Spring Cloud Contract 1.1.0.RC1
Spring Cloud Netflix 1.3.0.RC1
Spring Cloud Security 1.2.0.RC1
Spring Cloud Sleuth 1.2.0.RC1
Spring Cloud Stream Chelsea.RC1
Spring Cloud Task 1.1.1.RELEASE
Spring Cloud Vault Config 1.0.0.RC1
Spring Cloud Zookeeper 1.1.0.RC1
Spring Cloud Thin Launcher 1.1.0.RC1
Spring Cloud CLI 1.3.0.RC1

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

Maven 起步使用 BOM(仅依赖管理)

<repositories>
    <repository>
        <id>spring-milestones</id>
        <name>Spring Milestones</name>
        <url>http://repo.spring.io/milestone</url>
        <snapshots>
            <enabled>false</enabled>
        </snapshots>
    </repository>
</repositories>
<dependencyManagement>
  <dependencies>
    <groupId>org.springframework.cloud</groupId>
    <artifactId>spring-cloud-dependencies</artifactId>
    <version>Dalston.RC1</version>
    <type>pom</type>
    <scope>import</scope>
  </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.0.RELEASE"
  }
}
repositories {
    maven {
        url 'http://repo.spring.io/milestone'
    }
}
apply plugin: "io.spring.dependency-management"

dependencyManagement {
  imports {
    mavenBom 'org.springframework.cloud:spring-cloud-dependencies:Dalston.RC1'
  }
}

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 社区所有即将举行的活动。

查看所有