抢先一步
VMware 提供培训和认证,助您快速提升。
了解更多我代表社区荣幸地宣布,Spring Cloud 2020.0.0(代号:Ilford
)Release Train 的里程碑版本 1 (M1) 今天发布了。此版本可在 Spring Milestone 仓库中找到。您可以查看 2020 年的发布说明了解更多信息。
我们更改了 Release Train 的版本命名方案。现在,我们遵循日历版本控制(Calendar Versioning),简称 calver。我们将遵循 YYYY.MINOR.MICRO
的方案,其中 MINOR
是每年从零开始递增的数字。MICRO
段对应于以前使用的后缀:.0
类似于 .RELEASE
,.2
类似于 .SR2
。预发布版本的后缀分隔符也将从 .
更改为 -
,例如 2020.0.0-M1
和 2020.0.0-RC2
。我们也将停止使用 BUILD-
前缀作为快照版本 -- 例如 2020.0.0-SNAPSHOT
。
我们将继续使用伦敦地铁站的名称作为代号。当前的代号是 Ilford
。这些名称将不再用于发布到 Maven 仓库的版本中。
Spring Cloud AWS 和 Spring Cloud GCP 不再是 Release Train 的一部分。只要 Hoxton 版本仍受支持(至少到 2021 年 6 月),它们将继续是 Hoxton 的一部分。Spring Cloud GCP 将作为独立项目在 https://github.com/GoogleCloudPlatform 继续开发。
最初的里程碑版本基于 Spring Boot 2.3.x,但在 2.4.x 版本线启动后将转向该版本。
一旦 Spring Boot 的下一个特性版本 (2.4.0) 开始开发,2020.0
Release Train 将在 https://start.spring.io 上提供。有关如何在您的项目中包含此版本,请参阅下文的入门指南。
总共包含 183 个问题、增强、错误和拉取请求。详情请参阅 GitHub 项目。
更新以支持最新版本的 Brave。
增加了对 Consul 服务元数据 (Service Metadata) 的支持,而不是使用标签 (tags) 作为元数据。
服务实例 (Service Instance) 元数据现在被添加到路由 (Route) 元数据中。增加了即使请求或响应体为空也能修改其内容的支持。增加了一个忽略路由定义错误的选项。
增加了 Maven 插件中增量测试生成的支持。增加了 stubrunner 中对 Spring Cloud Loadbalancer 的支持。
以下模块在 2020.0.0-M1 版本中进行了更新
| 模块 | 版本 | 问题 |--- |--- |--- |--- | Spring Cloud Netflix | 3.0.0.M1 | (问题) | Spring Cloud Function | 3.1.0.M1 |
| Spring Cloud Sleuth | 3.0.0.M1 | (问题) | Spring Cloud Consul | 3.0.0.M1 | (问题) | Spring Cloud Kubernetes | 2.0.0.M1 |
| Spring Cloud Gateway | 3.0.0.M1 | (问题) | Spring Cloud Circuitbreaker | 2.0.0.M1 |
| Spring Cloud Contract | 3.0.0.M1 | (问题) | Spring Cloud Config | 3.0.0.M1 |
| Spring Cloud Build | 3.0.0.M1 |
| Spring Cloud Cloudfoundry | 3.0.0.M1 |
| Spring Cloud Security | 3.0.0.M1 |
| Spring Cloud Bus | 3.0.0.M1 |
| Spring Cloud Vault | 3.0.0.M1 |
| Spring Cloud Zookeeper | 3.0.0.M1 | (问题) | Spring Cloud Commons | 3.0.0.M1 | (问题) | Spring Cloud Openfeign | 3.0.0.M1 | (问题)
一如既往,我们欢迎在 GitHub、Gitter、Stack Overflow 和 Twitter 上提供反馈。
<repositories>
<repository>
<id>spring-milestones</id>
<name>Spring Milestones</name>
<url>https://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>2020.0.0-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-netflix-eureka-client</artifactId>
</dependency>
<!-- ... -->
</dependencies>
使用 Gradle 入门
plugins {
id 'org.springframework.boot' version '2.3.0.M4'
id 'io.spring.dependency-management' version '1.0.9.RELEASE'
id 'java'
}
repositories {
mavenCentral()
maven { url 'https://repo.spring.io/milestone' }
}
ext {
set('springCloudVersion', "2020.0.0-M1")
}
dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
}
}
dependencies {
compile 'org.springframework.cloud:spring-cloud-starter-config'
compile 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
//...
}