Spring Cloud 2020.0.0-M1 发布

发布 | Spencer Gibb | 2020 年 4 月 17 日 | ...

我代表社区荣幸地宣布,Spring Cloud 2020.0.0(代号:Ilford)Release Train 的里程碑版本 1 (M1) 今天发布了。此版本可在 Spring Milestone 仓库中找到。您可以查看 2020 年的发布说明了解更多信息

2020 Release Train 的显著变化

我们更改了 Release Train 的版本命名方案。现在,我们遵循日历版本控制(Calendar Versioning),简称 calver。我们将遵循 YYYY.MINOR.MICRO方案,其中 MINOR 是每年从零开始递增的数字。MICRO 段对应于以前使用的后缀:.0 类似于 .RELEASE.2 类似于 .SR2。预发布版本的后缀分隔符也将从 . 更改为 -,例如 2020.0.0-M12020.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 项目

Spring Cloud Netflix

  • 所有处于维护模式的项目都已移除,所有依赖的项目都已相应更新。
  • 增加了区域负载均衡器实现支持 #3720
  • 移除了已弃用的 EurekaDiscoveryClient.EurekaServiceInstance #3742

Spring Cloud Sleuth

更新以支持最新版本的 Brave。

Spring Cloud Consul

增加了对 Consul 服务元数据 (Service Metadata) 的支持,而不是使用标签 (tags) 作为元数据。

Spring Cloud Gateway

服务实例 (Service Instance) 元数据现在被添加到路由 (Route) 元数据中。增加了即使请求或响应体为空也能修改其内容的支持。增加了一个忽略路由定义错误的选项。

Spring Cloud CircuitBreaker

  • 将 Resilience4J 升级到 1.3.1

Spring Cloud Contract

增加了 Maven 插件中增量测试生成的支持。增加了 stubrunner 中对 Spring Cloud Loadbalancer 的支持。

Spring Cloud Zookeeper

  • 基于 Ribbon 的功能已切换并添加到 Spring Cloud LoadBalancer #240

Spring Cloud Commons

  • 添加了一个生成缓存的随机值的属性源 #719
  • 移除了 Spring Cloud LoadBalancer 与 Ribbon 的集成 #691

Spring Cloud Openfeign

  • 适配负载均衡器实现变更 #300

包含的模块

以下模块在 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 | (问题)

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

入门指南

使用 Maven 并引入 BOM(仅用于依赖管理)入门
<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'
  //...
}

订阅 Spring 新闻通讯

通过 Spring 新闻通讯保持联系

订阅

抢先一步

VMware 提供培训和认证,助您快速提升。

了解更多

获取支持

Tanzu Spring 通过一个简单的订阅提供对 OpenJDK™、Spring 和 Apache Tomcat® 的支持和二进制文件。

了解更多

即将举行的活动

查看 Spring 社区所有即将举行的活动。

查看全部