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

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

我代表社区高兴地宣布,Spring Cloud 2022.0.0 发布火车里程碑2(M2)今天已可用。该版本可在Spring Milestone存储库中找到。您可以查看2022.0的发布说明以获取更多信息

2022.0.0-M2发布火车中的显著变化

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

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

Spring Cloud Stream

  • Spring Cloud Stream的Kafka和RabbitMQ绑定器已作为核心Spring Cloud Stream仓库的一部分进行了迁移。通过此更改,Spring Cloud Stream现在采用单仓库方法,所有与框架相关的Spring Cloud Stream代码库现在都是单个仓库的一部分。有关Kafka绑定器的更多详细信息请参见此处,有关RabbitMQ绑定器的详细信息请参见此处。我们建议在核心仓库中提交Kafka和RabbitMQ绑定器的新功能请求和错误报告。
  • 引入了对基于 Reactor Kafka 的新型响应式 Kafka 绑定器 的初步支持。此支持包含使用 Reactor Kafka 作为底层实现的消费者和生产者绑定。更多详细信息请参阅此问题
  • 此外,鉴于我们现在已经依赖新的测试绑定器 3 年多了,我们也删除了旧的测试模块

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 上提供反馈。

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

查看所有