Spring Cloud 2020.0.0-M3(代号Ilford)现已发布

发布 | Spencer Gibb | 2020年7月28日 | ...

发布

我很高兴地代表社区宣布,Spring Cloud 2020.0 Release Train(代号为 Ilford)的 Milestone 3 (M3) 今日发布。您可以在 Spring Milestone 仓库中找到该版本。有关更多信息,您可以查阅 2020.0 的 发布说明

2020.0 Release Train 的显著变化

此版本需要 Spring Boot 2.4.0-M1。

您可以在 Github 项目 中查看所有包含的 issue 和 pull request。

Spring Cloud Sleuth

  • 改进 Reactor 集成 issue
  • 与 Spring Cloud Function 集成
  • 与 MongoDB 集成 issue

Spring Cloud Kubernetes

  • 现在可以在不依赖 Kubernetes API 的情况下,在 ConfigMaps 或 Secrets 中的值发生更改时刷新应用程序配置。请参阅 #567
  • 改进以维护绑定到 java.util.Map 的属性的数据类型和定义顺序。请参阅 #554

Spring Cloud Consul

为 Consul Bus 添加了对非 String payload 类型的支持。

Spring Cloud Config

现在可以通过属性禁用 JDBC Environment Repository。

Spring Cloud Function

除了少数增强功能和 bug 修复之外,此版本还包含了对 RSocket 集成的初步支持。稍后将发布一篇单独的博客文章。

Spring Cloud Gateway

  • 添加了根据返回的状态码熔断的能力。请参阅 #1836

Spring Cloud Contract

  • 将 WireMock 升级到 2.27.0 issue
  • 使 Rest Assured 版本与 Boot 对齐 issue
  • 大量的库升级 issues

Spring Cloud Commons

Spring Cloud Loadbalancer 的生命周期已完成。这允许用户以类型安全的方式轻松响应 Load Balancer 生命周期事件。

Spring Cloud Openfeign

添加了对 OpenFeign Collection Format 的支持 issue

Spring Cloud Stream

与 Spring Cloud Function 更紧密的集成,TestBinder 中新增了一些功能,允许您向/从命名目标发送/接收消息,动态目标的性能显著提高,以及框架中大量的增强功能和 bug 修复。

Spring Cloud Task

Spring Cloud Task 为 Single-step Batch Jobs 功能添加了 JdbcCursorItemReaderJdbcItemWriter。此功能允许用户仅通过属性配置单步 Spring Batch 作业。有关如何使用此功能的示例,请参见 此处


以下模块已在 2020.0.0-M3 中更新

| Module | Version | Issues |--- |--- |--- |--- | Spring Cloud Bus | 3.0.0-M3 |
| Spring Cloud Circuitbreaker | 2.0.0-M3 |
| Spring Cloud Cloudfoundry | 3.0.0-M3 |
| Spring Cloud Commons | 3.0.0-M3 |
| Spring Cloud Config | 3.0.0-M3 | (issues) | Spring Cloud Consul | 3.0.0-M3 |
| Spring Cloud Contract | 3.0.0-M3 | (issues) | Spring Cloud Function | 3.1.0-M2 |   | Spring Cloud Gateway | 3.0.0-M3 |
| Spring Cloud Kubernetes | 2.0.0-M3 |
| Spring Cloud Netflix | 3.0.0-M3 |
| Spring Cloud Openfeign | 3.0.0-M3 |
| Spring Cloud Security | 3.0.0-M3 |
| Spring Cloud Sleuth | 3.0.0-M3 |
| Spring Cloud Stream | 3.1.0-M2 |   | Spring Cloud Task | 2.3.0-M2 |   | Spring Cloud Vault | 3.0.0-M3 |
| Spring Cloud Zookeeper | 3.0.0-M3 |

一如既往,我们欢迎大家在 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-M3</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-M3'
  }
}

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

查看所有