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

356 阅读2分钟

我代表社区高兴地宣布,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的这个里程碑引入了对gRPC的初步支持。
    最初的文档在这里可以找到。样本、更多的文档和单独的博文也将陆续发布。

春天云保险库

春天云探索

春天云Kubernetes

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

  • 添加了一个新的KubernetesDiscoveryClient 实现,它利用了新的Kubernetes Discovery Sever#886

以下模块作为2021.0.0-M3的一部分进行了更新。

模块版本问题
Spring Cloud Zookeeper3.1.0-M3
春天云Cli3.1.0-M3
春天的天空3.1.0-M3
春天云总线3.1.0-M3
春天云网关3.1.0-M3(问题)
Spring Cloud Starter Build2021.0.0-M3
Spring Cloud Vault3.1.0-M3
春天的云库3.1.0-M3
春天云公社3.1.0-M3
春天云Openfeign3.1.0-M3
春天云任务2.4.0-M3(问题)
Spring Cloud配置3.1.0-M3
Spring Cloud Sleuth3.1.0-M3(问题)
Spring Cloud Netflix3.1.0-M3(问题)
Spring Cloud Kubernetes2.1.0-M3(问题)
春天云断路者2.1.0-M3
弹簧云合同3.1.0-M3(问题)

一如既往,我们欢迎在GitHubGitterStack OverflowTwitter上提出反馈。

要开始使用带有BOM的Maven(仅依赖性管理)。

    <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'

...

}