Spring Cloud 2021.0.0-M1 (别名 Jubilee) 现已发布

版本发布 | Ryan Baxter | 2021 年 7 月 31 日 | ...

我谨代表社区,很高兴宣布 Spring Cloud 2021 发布线的里程碑 1 (M1) 今天已发布。您可以在 Spring Milestone 仓库中找到此版本。您可以查看 2021 版本说明以获取更多信息

此版本与 Spring Boot 2.6.0-M1 兼容。

此版本的 GitHub 项目可以在 此处找到。

2021 发布列车的显著变化

Spring Cloud Gateway

  • StripPrefixFilter 默认值从 0 改为 1 #2033
  • 添加新的 CacheRequestBodyFilter #1943
  • 通过 Redis 在 Gateway 实例之间共享路由 #1390

Spring Cloud Sleuth

  • 添加了 JDBC 支持 #1930
  • Instruments Tomcat Valve #1329
  • 支持 Spring Vault #1952
  • 自动标签表生成文档 #1950
  • Spring Cloud Deployer 支持 #1947
  • Spring Cloud Skipper 支持 #1927
  • R2DBC 支持 #1524
  • 支持 Reactor Kafka #1708
  • Spring TX 仪器化 #1941
  • Spring Batch 支持 #1904
  • RSocket 仪器化 #1677
  • 支持 Spring Cloud Task #1903
  • Spring Cloud Config 仪器化 #1915
  • 添加了对 Spring Cloud Circuit Breaker Reactive 的支持 #1910
  • 添加了对 Kotlin Coroutines 的支持 #1737

Spring Cloud Openfeign

  • 将 Feign 升级到 11.6 #584

Spring Cloud Kubernetes

  • 将 kubernetes-client 更新到 5.5.0 #836

Spring Cloud Task

  • 将 Spring Cloud Stream 升级到 3.2 系列。
  • 为 Spring Boot 2.6 做准备,移除了 TaskJobLauncherCommandLineRunner,转而使用 TaskJobLauncherApplicationRunner

Spring Cloud Config

  • 集成 AWS Secrets Manager #1638
  • GCP Secret Manager 集成 #1628
  • 支持 AWS Systems Manager Parameter Store #1598

Spring Cloud Contract

  • JDK16 支持

以下模块已在 2021.0.0-M1 中更新

模块 版本 问题
Spring Cloud Consul 3.1.0-M1 (issues)
Spring Cloud Gateway 3.1.0-M1 (issues)
Spring Cloud Zookeeper 3.1.0-M1
Spring Cloud Sleuth 3.1.0-M1 (issues)
Spring Cloud CLI 3.1.0-M1
Spring Cloud Starter Build 2021.0.0-M1
Spring Cloud Bus 3.1.0-M1
Spring Cloud Vault 3.1.0-M1
Spring Cloud Commons 3.1.0-M1
Spring Cloud Openfeign 3.1.0-M1 (issues)
Spring Cloud Kubernetes 2.1.0-M1 (issues)
Spring Cloud Task 2.4.0-M1
Spring Cloud Config 3.1.0-M1 (issues)
Spring Cloud Netflix 3.1.0-M1
Spring Cloud Contract 3.1.0-M1
Spring Cloud Cloudfoundry 3.1.0-M1
Spring Cloud Circuitbreaker 2.1.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>2021.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

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

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

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

dependencyManagement {
imports {
mavenBom 'org.springframework.cloud:spring-cloud-dependencies:2021.0.0-M1'
}
}

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

查看所有