领先一步
VMware 提供培训和认证,助您加速进步。
了解更多我谨代表团队,很高兴地宣布 Spring Cloud Camden 版本系列以及 Brixton 的 Service Release 6 的正式发布。Camden.RELEASE 可在我们的 Spring Release 仓库中找到。您可以查看 Camden 发布说明以获取更多信息。Brixton.SR6 主要是一个错误修复版本,建议与 Brixton 版本系列一起使用。
Spring Cloud Contract 是一个新项目,为 Spring 应用程序中的消费者驱动契约和服务模式提供支持。Spring Cloud Netflix 通过属性支持 Ribbon 组件类的自定义,使用了新的社区维护的 OpenFeign,并包含对 Zuul 的各种修复和改进。Spring Cloud Consul 增加了对使用 Consul 事件 API 的 Spring Cloud Bus 的支持。CLI 添加了一个 spring cloud 命令,可以用一个命令启动各种 Spring Cloud 服务器。支持的服务器包括 Eureka、Config Server 和 Hystrix Dashboard。
作为 Camden.RELEASE 的一部分,以下模块已更新:
| 模块 | 版本 |
|---|---|
| Spring Cloud Build | 1.2.0.RELEASE |
| Spring Cloud Stream | Brooklyn.RELEASE |
| Spring Cloud Bus | 1.2.0.RELEASE |
| Spring Cloud Config | 1.2.0.RELEASE |
| Spring Cloud Netflix | 1.2.0.RELEASE |
| Spring Cloud Consul | 1.1.0.RELEASE |
| Spring Cloud Contract | 1.0.0.RELEASE |
注意:Spring Cloud CLI 1.2.0.RC1 已发布。CLI 项目的 GA 版本即将发布。
综合版本发布文档可在此 处 获得。
一如既往,我们欢迎您的反馈:可以在 GitHub、Gitter、Stack Overflow 或 Twitter 上提出。
Maven 起步使用 BOM(仅依赖管理)
<dependencyManagement>
<dependencies>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>Camden.RELEASE</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 "org.springframework.boot:spring-boot-gradle-plugin:1.4.1.RELEASE"
}
}
apply plugin: "spring-boot"
dependencyManagement {
imports {
mavenBom 'org.springframework.cloud:spring-cloud-dependencies:Camden.RELEASE'
}
}
dependencies {
compile 'org.springframework.cloud:spring-cloud-starter-config'
compile 'org.springframework.cloud:spring-cloud-starter-eureka'
...
}