Spring Cloud 2021.0.3已经推出|与Spring Boot 2.7.0兼容

180 阅读1分钟

我代表社区高兴地宣布,Spring Cloud 2021.0.3版列车今天正式发布。该版本可在Maven中心找到。你可以查看2021.0.3发布说明,了解更多信息

2021.0.3发布列车的显著变化

该版本主要是为了与Spring Boot 2.7.0以及Spring Boot 2.6.x兼容。

要查看该版本中的所有问题和拉动请求,请看这里

Spring Cloud Sleuth

  • 错误修复和小的改进

春天云合同

  • 错误修复和JsonAssert升级

春天云网关

  • 错误修复和对PrefixPath 过滤器的路径变量支持。

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

模块版本问题
Spring Cloud Stream3.2.4
春天云配置3.1.3(问题)
Spring Cloud Build3.1.3(问题)
春天的云端侦探3.1.3(问题)
Spring Cloud Contract3.1.3(问题)
春天云启动器构建2021.0.3
春天云网关3.1.3(问题)
Spring Cloud Consul3.1.1
Spring Cloud Netflix3.1.3
Spring Cloud Cloudfoundry3.1.2
春天云保险库3.1.1
Spring Cloud Kubernetes2.1.3(问题)
Spring Cloud Bus3.1.2
春天云Zookeeper3.1.2
春天云任务2.4.3(问题)
Spring Cloud Cli3.1.1
Spring Cloud Commons3.1.3
Spring Cloud Openfeign3.1.3
春天云功能3.2.5
弹簧云断路器2.1.3

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

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

<dependencyManagement>

    <dependencies>

        <dependency>

            <groupId>org.springframework.cloud</groupId>

            <artifactId>spring-cloud-dependencies</artifactId>

            <version>2021.0.3</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.8'

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

  id 'java'

}



group = 'com.example'

version = '0.0.1-SNAPSHOT'

sourceCompatibility = '8'



repositories {

  mavenCentral()

}



ext {

  set('springCloudVersion', "2021.0.3")

}



dependencies {

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

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

}



dependencyManagement {

  imports {

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

  }

}