Spring Cloud 2021.0.6 已发布

发布 | Oleg Zhurakousky | 2023 年 2 月 24 日 | ...

我很高兴代表社区宣布 Spring Cloud 2021.0.6 发布系列(RELEASE)今天正式发布。该版本可在 Maven Central 中找到。您可以查看 2021.0.6 发行说明了解更多信息

Spring Cloud 2021.0.6 发布系列中的显著变化

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

Spring Cloud Commons

  • 添加实用方法以使用用户提供的区域配置区域偏好负载均衡 (#1174)

Spring Cloud Netflix

  • 允许设置获取实例的超时时间 (#4110)

Spring Cloud Gateway

  • 修复了 CacheRequestBodyGatewayFilter 中的内存泄漏问题 (2842)

Spring Cloud Kubernetes

  • 当 secured 注解为 true 时使用 SSL (#1141)

Spring Cloud OpenFeign

  • 允许配置 Apache HttpClient 的请求超时时间 (#799)

Spring Cloud Stream

  • 增强了自定义路由函数,确保它们不创建输出绑定(类似于提供的函数)
  • 在多绑定场景下,整合父/子上下文之间的核心 bean 传播
  • 一些错误修复

Spring Cloud Function

  • 多项改进和错误修复,主要集中在 AWS Lambda 支持方面

以下模块已更新,作为 2021.0.6 的一部分

模块 版本
Spring Cloud Netflix 3.1.5
Spring Cloud Config 3.1.6
Spring Cloud Build 3.1.6
Spring Cloud Sleuth 3.1.7
Spring Cloud Gateway 3.1.6
Spring Cloud Starter Build 2021.0.6
Spring Cloud Consul 3.1.2
Spring Cloud Contract 3.1.6
Spring Cloud Vault 3.1.2
Spring Cloud Kubernetes 2.1.6
Spring Cloud Zookeeper 3.1.3
Spring Cloud Task 2.4.6
Spring Cloud Openfeign 3.1.6
Spring Cloud Circuitbreaker 2.1.6
Spring Cloud Stream 3.2.7
Spring Cloud Commons 3.1.6
Spring Cloud Function 3.2.9

一如既往,欢迎通过 GitHubGitterStack OverflowTwitter 提供反馈。

使用 Maven 和 BOM(仅依赖管理)开始

<dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-dependencies</artifactId>
            <version>2021.0.6</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 'java'
  id 'org.springframework.boot' version '2.7.9'
  id 'io.spring.dependency-management' version '1.0.15.RELEASE'
}

group = 'com.example'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '8'

repositories {
  mavenCentral()
}

ext {
  set('springCloudVersion', "2021.0.6")
}

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}"
  }
}

订阅 Spring 新闻稿

通过 Spring 新闻稿保持联系

订阅

领先一步

VMware 提供培训和认证,助您快速进步。

了解更多

获取支持

Tanzu Spring 通过一个简单的订阅提供 OpenJDK™、Spring 和 Apache Tomcat® 的支持和二进制文件。

了解更多

即将举办的活动

查看 Spring 社区中所有即将举办的活动。

查看全部