领先一步
VMware 提供培训和认证,助您加速进步。
了解更多我谨代表社区宣布,Spring Cloud Finchley Release Train 的 Milestone 2 (M2) 今天已发布。该版本可以在 Spring Milestone 仓库中找到。您可以在 Finchley 发布说明 中获取更多信息。
Finchley.M2 版本建立在 Spring Boot 2.0.0.M3、Spring Framework 5.0.0.RC3 和 Project Reactor Bismuth-M3 版本之上。
Gateway 的主要新功能是 WebSocket 支持(使用 ws:// scheme 路由 uri)以及基于 Redis 的请求速率限制器,更多 文档 和一个 网站。
支持在新的 Spring WebFlux WebClient 中使用 'serviceId' 或逻辑主机名。
首次包含了一个与 Spring Boot 2.0.0 兼容的 Spring Cloud Task 版本。
基于 Spring WebFlux WebClient 的 Spring Vault 2.0.M2 的自动配置,用于响应式客户端访问。通过 Spring Vault 的 认证流 DSL 支持 Spring Cloud Vault 支持的身份验证方法,用于响应式认证。升级的依赖项还改进了对基于 Spring 的 @NonNullApi 和 @Nullable 注解的 API 验证(针对 null 值)的支持。
下一个 Finchley 里程碑将构建在 Spring Boot 2.0.0.M4 之上。Spring Cloud 的主题将包括对 新的 Actuator 框架 的支持以及 Sleuth 的响应式支持。
| 模块 | 版本 |
|---|---|
| Spring Cloud Sleuth | 2.0.0.M2 |
| Spring Cloud Cloudfoundry | 2.0.0.M1 |
| Spring Cloud Consul | 2.0.0.M1 |
| Spring Cloud Config | 2.0.0.M2 |
| Spring Cloud Gateway | 2.0.0.M2 |
| Spring Cloud Build | 2.0.0.M2 |
| Spring Cloud Dependencies | 2.0.0.M2 |
| Spring Cloud Netflix | 2.0.0.M2 |
| Spring Boot Starter | 2.0.0.M2 |
| Spring Cloud Security | 2.0.0.M1 |
| Spring Cloud Bus | 2.0.0.M1 |
| Spring Cloud Contract | 2.0.0.M2 |
| Spring Boot 依赖项 | 2.0.0.M2 |
| Spring Cloud Aws | 2.0.0.M1 |
| Spring Cloud Stream | Elmhurst.M1 |
| Spring Cloud Task | 2.0.0.M1 |
| Spring Cloud Zookeeper | 2.0.0.M1 |
| Spring Boot | 2.0.0.M2 |
| Spring Cloud Commons | 2.0.0.M2 |
| Spring Cloud Vault | 2.0.0.M1 |
一如既往,我们欢迎反馈:可以在 GitHub、Gitter、Stack Overflow 或 Twitter 上提供。
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>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>Finchley.M2</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"
}
}
repositories {
maven {
url 'http://repo.spring.io/milestone'
}
}
apply plugin: "io.spring.dependency-management"
dependencyManagement {
imports {
mavenBom 'org.springframework.cloud:spring-cloud-dependencies:Finchley.M2'
}
}
dependencies {
compile 'org.springframework.cloud:spring-cloud-starter-config'
compile 'org.springframework.cloud:spring-cloud-starter-eureka'
...
}