领先一步
VMware 提供培训和认证,助您加速进步。
了解更多我谨代表社区宣布,Spring Cloud Finchley 发布火车(Release Train)的第一个里程碑版本(M1)现已发布。您可以在 Spring Milestone 仓库中找到此版本。您还可以查看 Finchley 发布说明以获取更多信息。
Finchley 基于 Spring Boot 2.0.0 版本。Finchley.M1 基于 Spring Boot 2.0.0.M2。这主要是为了兼容性而构建,除了 Spring Cloud Gateway 之外,没有新功能。Finchley 将跟随 Spring Boot 的里程碑和候选版本,并在之后很快发布相应的 Finchley 版本。预计将在 2017 年 12 月 Spring Boot 2.0 GA 发布后提供通用可用版本(General Availability)。
Spring Cloud Gateway 是一个基于 Spring 5、Boot 2 和 Project Reactor 的新 API 网关。它被视为 Zuul 1 的替代品。一些功能包括:
敬请期待未来一篇博客文章,将进一步介绍 Spring Cloud Gateway。
以下模块已在 Finchley.M1 中更新:
| 模块 | 版本 |
|---|---|
| Spring Cloud Sleuth | 2.0.0.M1 |
| Spring Cloud Cloudfoundry | 2.0.0.M1 |
| Spring Cloud Gateway | 2.0.0.M1 |
| Spring Cloud Build | 2.0.0.M1 |
| Spring Cloud Config | 2.0.0.M1 |
| Spring Cloud Consul | 2.0.0.M1 |
| Spring Cloud Dependencies | 2.0.0.M1 |
| Spring Cloud Netflix | 2.0.0.M1 |
| Spring Cloud Task | 1.2.0.RELEASE |
| 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.M1 |
| Spring Cloud Aws | 2.0.0.M1 |
| Spring Cloud Stream | Elmhurst.M1 |
| Spring Cloud Commons | 2.0.0.M1 |
| Spring Cloud Zookeeper | 2.0.0.M1 |
| Spring Boot | 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.M1</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.M1'
}
}
dependencies {
compile 'org.springframework.cloud:spring-cloud-starter-config'
compile 'org.springframework.cloud:spring-cloud-starter-eureka'
...
}