Spring Cloud 2020.0.0-M1 已发布

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

我谨代表社区,高兴地宣布 Spring Cloud 2020.0.0(代号:Ilford)发布线的里程碑 1 (M1) 于今日发布。您可以在 Spring Milestone 仓库中找到此版本。您可以查阅 2020 年的 发布说明以获取更多信息

2020 发布线中的主要变更

我们更改了发布线版本控制方案。我们现在遵循 日历版本控制(简称 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 不再是发布线的一部分。只要它们仍在支持中,它们将继续作为 Hoxton 的一部分——至少持续到 2021 年 6 月。Spring Cloud GCP 将作为一个独立项目继续存在于 https://github.com/GoogleCloudPlatform

最初的里程碑基于 Spring Boot 2.3.x,但一旦该版本线开始,将切换到 2.4.x。

一旦 Spring Boot 的下一个功能版本(2.4.0)开始开发,2020.0 发布线将可在 https://start.spring.io 上使用。请参阅下面的 入门指南,了解如何将此版本包含在您的项目中。

总共有 183 个问题、增强、错误和拉取请求被包含在此发布中。请参阅 GitHub 项目 以获取详细信息。

Spring Cloud Netflix

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

Spring Cloud Sleuth

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

Spring Cloud Consul

增加了对 Consul 服务元数据而非使用标签作为元数据的支持。

Spring Cloud Gateway

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

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

  • 根据 LoadBalancer 实现的更改进行了调整 #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 社区所有即将举行的活动。

查看所有