Spring Cloud 2020.0.0-M5 (代号 Ilford) 版本发布

发布 | Spencer Gibb | 2020年11月18日 | ...

我代表社区高兴地宣布,Spring Cloud 2020 发布火车里程碑 5 (M5) 今天发布了。该版本可以在 Spring 里程碑 仓库中找到。您可以查看 2020 发布说明 以获取更多信息。

2020 发布火车中的显著变化

此版本需要 Spring Boot 2.4.0。

在 Sleuth 中添加了对 OpenTelemetry 的支持。

在 Bus 中添加了对 RSocket 的支持。

请查看 wiki,获取此发布火车中所有破坏性变更的列表。

Github 项目 中查看所有包含的问题和拉取请求。

Spring Cloud Bus

通过 Spring Cloud Function 的 RSocket 支持,添加了对 RSocket 的支持。这不需要 Spring Cloud Stream。

Spring Cloud Commons

在响应式 Spring Cloud Loadbalancer 中添加了对 重试 的支持。

Spring Cloud Config

为 git 环境仓库添加了 子模块 支持。

Spring Cloud Contract

添加了 对处理响应中空列表和映射的支持。

Spring Cloud Gateway

Token Relay 支持从 Spring Cloud Security 迁移到 Gateway。还添加了 Token 刷新功能。

Spring Cloud Kubernetes

添加了 一个基于官方 Kubernetes Java Client 的新模块。

Spring Cloud Netflix

EurekaHealthCheckHandler 现在考虑了 ReactiveHealthIndicator

Spring Cloud Openfeign

添加了 配置客户端发送默认头和查询参数的能力。

Spring Cloud Security

Token Relay 支持已移至 Spring Cloud Gateway(见上文)。

Spring Cloud Sleuth

添加了 对 OpenTelemetry 的支持。


以下模块作为 2020.0.0-M5 的一部分进行了更新

| 模块 | 版本 | 问题 |--- |--- |--- |--- | Spring Cloud Bus | 3.0.0-M5 | (问题) | Spring Cloud Circuitbreaker | 2.0.0-M5 | (问题) | Spring Cloud Cli | 3.0.0-M5 |
| Spring Cloud Cloudfoundry | 3.0.0-M5 |
| Spring Cloud Commons | 3.0.0-M5 | (问题) | Spring Cloud Config | 3.0.0-M5 | (问题) | Spring Cloud Consul | 3.0.0-M5 |
| Spring Cloud Contract | 3.0.0-M5 | (问题) | Spring Cloud Gateway | 3.0.0-M5 |
| Spring Cloud Kubernetes | 2.0.0-M5 | (问题) | Spring Cloud Netflix | 3.0.0-M5 | (问题) | Spring Cloud Openfeign | 3.0.0-M5 | (问题) | Spring Cloud Security | 3.0.0-M5 |
| Spring Cloud Sleuth | 3.0.0-M5 | (问题) | Spring Cloud Starter Build | 2020.0.0-M5 |
| Spring Cloud Vault | 3.0.0-M5 |
| Spring Cloud Zookeeper | 3.0.0-M5 |

一如既往,我们欢迎在 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-M5</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

buildscript {
  dependencies {
    classpath "io.spring.gradle:dependency-management-plugin:1.0.9.RELEASE"
  }
}

repositories {
  maven {
    url 'https://repo.spring.io/milestone'
  }
}

apply plugin: "io.spring.dependency-management"

dependencyManagement {
  imports {
    mavenBom 'org.springframework.cloud:spring-cloud-dependencies:2020.0.0-M5'
  }
}

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 社区所有即将举办的活动。

查看全部