Spring Cloud 2021.0.0-M2(代号为Jubilee)已经上市

131 阅读1分钟

我代表社区高兴地宣布,Spring Cloud 2021.0发布列车(代号为Jubilee)的里程碑2(M2)今天已经推出。该版本可以在Spring Milestone仓库中找到。你可以查看2021.0.0-M2发布说明了解更多信息

2021.0.0-M2发布列车的显著变化

Milestone 2与Spring Boot 2.6.0-M3兼容。

请参阅项目页面,了解该版本中包含的所有问题和拉动请求。

Spring Cloud Commons

调整了Sleuth的NamedContextFactory API。

春天云配置

允许JDBC环境库中除字符串以外的类型问题 1952年

春天云合约

UUID v4和大小写不敏感问题 1688.当使用独立的docker镜像时,允许自定义build.gradle 问题 1672.

春天云网关

支持HTTP 2协议,问题7

Spring Cloud Kubernetes

不同java客户端之间的一致性。

Spring Cloud Openfeign

增加了对@CookieValue 注释的支持,问题604

春天云Sleuth

增加了Spring Kafka工具化问题2013

包含的模块

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

模块版本问题
Spring Cloud Zookeeper3.1.0-M2
春天云公社3.1.0-M2(问题)
Spring Cloud Kubernetes2.1.0-M2
春天云任务2.4.0-M2
春天云总线3.1.0-M2
春天的云端侦探(Spring Cloud Sleuth3.1.0-M2(问题)
Spring Cloud Cli3.1.0-M2
Spring Cloud Starter Build2021.0.0-M2
春天云库3.1.0-M2
春天的云合同3.1.0-M2(问题)

一如既往,我们欢迎在GitHubStack 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-M2</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入门。

plugins {

  id 'org.springframework.boot' version '2.6.0.M3'

  id 'io.spring.dependency-management' version '1.0.11.RELEASE'

  id 'java'

}



repositories {

  mavenCentral()

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

}



ext {

  set('springCloudVersion', "2021.0.0-M2")

}



dependencyManagement {

  imports {

    mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"

  }

}



dependencies {

  compile 'org.springframework.cloud:spring-cloud-starter-config'

  compile 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'

  //...

}