Spring Cloud 2022.0.0-M2(代号 Kilburn)已发布

发布 | Marcin Grzejszczak | 2022 年 4 月 5 日 | ...

我很高兴代表社区宣布,Spring Cloud 2022.0.0 Release Train 的里程碑版本 2 (M2) 已于今日发布。该版本可在Spring Milestone 仓库中找到。您可以查阅 2022.0 版本说明以获取更多信息

2022.0.0-M2 Release Train 的显著变化

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

Spring Cloud 2022.0.0-M2 与 Spring Boot 3.0.0-M2 兼容。

Spring Cloud Stream

  • Spring Cloud Stream 的 Kafka 和 RabbitMQ binder 已迁移至核心 Spring Cloud Stream 仓库。通过这一改变,Spring Cloud Stream 现在遵循单仓库模式,所有与 Spring Cloud Stream 框架相关的代码库现在都是单个仓库的一部分。有关 Kafka binder 的更多详细信息,请参阅此处;有关 RabbitMQ binder,请参阅此处。我们建议在核心仓库中提交针对 Kafka 和 RabbitMQ binder 的新功能请求和错误报告。
  • 引入了对基于 Reactor Kafka 的新响应式 Kafka binder 的初步支持。该支持在底层使用 Reactor Kafka 实现消费者和生产者绑定。更多详细信息请参阅此 issue
  • 此外,鉴于我们依赖新的测试 binder 已经三年多了,我们也移除了旧的测试模块

Spring Cloud Config

  • 接收到错误响应码时尝试多个 URL (#1845)
  • 允许指定 down 健康状态 (#2056)

Spring Cloud Kubernetes

  • 重构 configmaps 和 secrets 实现 (#917)

Spring Cloud Contract

Spring Cloud Gateway

  • 为 "X-Forwarded-For" 请求头添加路由断言 (#2384)

Spring Cloud Function

  • 支持添加多个路由
  • 支持对请求头键进行大小写不敏感评估
  • cve-2022-22963

Spring Cloud Commons

作为 2022.0.0-M2 的一部分,以下模块已更新

模块 版本 问题
Spring Cloud Stream 4.0.0-M2
Spring Cloud Config 4.0.0-M2 (问题)
Spring Cloud Build 4.0.0-M2
Spring Cloud Kubernetes 3.0.0-M2 (问题)
Spring Cloud Circuitbreaker 3.0.0-M2 (问题)
Spring Cloud Contract 4.0.0-M2 (问题)
Spring Cloud Consul 4.0.0-M2
Spring Cloud Gateway 4.0.0-M2 (问题)
Spring Cloud Starter Build 2022.0.0-M2
Spring Cloud Function 4.0.0-M2
Spring Cloud Vault 4.0.0-M2
Spring Cloud Bus 4.0.0-M2
Spring Cloud Zookeeper 4.0.0-M2
Spring Cloud Task 3.0.0-M2 (问题)
Spring Cloud Commons 4.0.0-M2 (问题)
Spring Cloud Openfeign 4.0.0-M2 (问题)

一如既往,欢迎通过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>2022.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

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:2022.0.0-M2'
}
}

dependencies {
compile 'org.springframework.cloud:spring-cloud-starter-config'
compile 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
...
}

获取 Spring 新闻简报

订阅 Spring 新闻简报,保持联系

订阅

抢占先机

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

了解更多

获取支持

Tanzu Spring 在一项简单的订阅中提供对 OpenJDK™、Spring 和 Apache Tomcat® 的支持和二进制文件。

了解更多

即将举行的活动

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

查看全部