Spring Cloud 2021.0.0-M3 (代号 Jubilee) 已发布

版本发布 | Ryan Baxter | 2021 年 10 月 20 日 | ...

我谨代表社区宣布,Spring Cloud 2021 发布列车的里程碑 3 (M3) 版本已于今日发布。您可以在 Spring Milestone 仓库中找到该版本。您可以查阅 2021 版本说明以获取更多信息。

2021 发布列车的显著变化

Milestone 3 与 Spring Boot 2.6.0-M3 兼容。

查看项目页面,了解此版本中包含的所有问题和拉取请求。

Spring Cloud Gateway

  • 添加了对 gRPC 的初步支持 #2388

Spring Cloud Function

  • 除了各种增强功能和错误修复之外,Spring Cloud Function 的这个里程碑版本还引入了对 gRPC 的初步支持。

初步文档可在此处获取。样本、更多文档和单独的博客文章即将推出。

Spring Cloud Vault

  • 来自文件的 TOKEN 认证 (~/.vault_token) #609

Spring Cloud Sleuth

  • 添加了 Exemplars 支持

Spring Cloud Kubernetes

  • 为 Config Maps 和 Secrets 添加了一个 EnvironmentRepsitory,以支持使用 Spring Cloud Config Server 从 Kubernetes 资源提供配置数据。现在可以在 DockerHub 上获得包含此新 EnvrionmentRepository 实现的 Spring Cloud Config Server 镜像。使用此新功能的支持文档可在此处提供。 #881

  • 添加了一个新的 Kubernetes DiscoveryClient 实现,该实现利用了新的 Kubernetes Discovery Sever。 #886

作为 2021.0.0-M3 的一部分,以下模块已更新

模块 版本 问题
Spring Cloud Zookeeper 3.1.0-M3
Spring Cloud CLI 3.1.0-M3
Spring Cloud Consul 3.1.0-M3
Spring Cloud Bus 3.1.0-M3
Spring Cloud Gateway 3.1.0-M3 (issues)
Spring Cloud Starter Build 2021.0.0-M3
Spring Cloud Vault 3.1.0-M3
Spring Cloud Cloudfoundry 3.1.0-M3
Spring Cloud Commons 3.1.0-M3
Spring Cloud Openfeign 3.1.0-M3
Spring Cloud Task 2.4.0-M3 (issues)
Spring Cloud Config 3.1.0-M3
Spring Cloud Sleuth 3.1.0-M3 (issues)
Spring Cloud Netflix 3.1.0-M3 (issues)
Spring Cloud Kubernetes 2.1.0-M3 (issues)
Spring Cloud Circuitbreaker 2.1.0-M3
Spring Cloud Contract 3.1.0-M3 (issues)

一如既往,我们欢迎大家在 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-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.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-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 社区所有即将举行的活动。

查看所有