Spring Cloud 2021.0.0 (代号 Jubilee) 已发布

发布 | Spencer Gibb | 2021 年 12 月 2 日 | ...

我很高兴代表社区宣布 Spring Cloud 2021.0 版本列车(代号 Jubilee)的正式发布,今天已可用。该版本可在 Maven Central 中找到。您可以查看 2021.0 发行说明以获取更多信息

2021.0发布火车中的显著变化

2021.0.0 与 Spring Boot 2.6.1 兼容

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

Spring Cloud Commons

  • 支持每个 LoadBalancer 配置属性(也添加到 Gateway、Contract 和 OpenFeign 中)。

Spring Cloud Config

  • 与 AWS Secrets Manager、AWS Parameter Store 和 GCP Secret Manager 集成。

Spring Cloud Function

  • 支持 gRPC、通过 actuator 端点支持 FunctionCatalog、AWS 改进、CloudEvents 等。您可以在这篇博客文章中阅读更多内容

Spring Cloud Gateway

  • Redis 路由存储库
  • HTTP 2 支持
  • gRPC 支持

Spring Cloud Kubernetes

  • 配置服务器和发现控制器

Spring Cloud OpenFeign

  • 支持 @Cachable

Spring Cloud Sleuth

  • Tomcat、Spring Vault、R2DBC、JDBC、Spring Cloud Deployer、Spring Cloud Skipper、Reactor Kafka、Spring TX、Spring Batch、RSocket、Spring Cloud Task、Spring Cloud Config、Kotlin 协程等的检测。

Spring Cloud Stream

  • 此版本解决了大约 100 个问题,涉及 核心KafkaRabbit 绑定器。

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

模块 版本 问题
Spring Cloud Vault 3.1.0
Spring Cloud Bus 3.1.0
Spring Cloud CLI 3.1.0
Spring Cloud Zookeeper 3.1.0
Spring Cloud Circuitbreaker 2.1.0 (问题)
Spring Cloud Commons 3.1.0 (问题)
Spring Cloud Kubernetes 2.1.0 (问题)
Spring Cloud OpenFeign 3.1.0 (问题)
Spring Cloud Task 2.4.0 (问题)
Spring Cloud Sleuth 3.1.0 (问题)
Spring Cloud Contract 3.1.0 (问题)
Spring Cloud Consul 3.1.0
Spring Cloud Function 3.2.1 (问题)
Spring Cloud Stream 3.2.1 请参阅上面列出的问题
Spring Cloud Gateway 3.1.0 (问题)
Spring Cloud Config 3.1.0 (问题)
Spring Cloud Cloudfoundry 3.1.0
Spring Cloud Starter Build 2021.0.0
Spring Cloud Netflix 3.1.0 (问题)

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

Maven 起步使用 BOM(仅依赖管理)


<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.1'
  id 'io.spring.dependency-management' version '1.0.11.RELEASE'
  id 'java'
}

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

repositories {
  mavenCentral()
}

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

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 社区所有即将举行的活动。

查看所有