Spring Cloud 2022.0.0 Release Candidate 2 (代号 Kilburn) 已发布

版本发布 | Ryan Baxter | 2022 年 11 月 18 日 | ...

我谨代表社区,很高兴地宣布 Spring Cloud 2022.0 Release Train 的 Release Candidate 2 (RC2) 今日可用。该版本可在 Spring Milestone 仓库中找到。您可以查看 2022.0 版本说明以获取更多信息

2022.0 Release Train 中的显著变化

单击此处查看此版本中的所有问题。

Spring Cloud 2022.0.0-RC2 需要 Spring Boot 3.0.0-RC2。

所有 Spring Cloud 项目现已使用 Apache HttpClient v5。

Spring Cloud Contract

本次发布包含大量更新,包括依赖项升级以及一些不兼容的变更。请仔细查看并提供您的反馈!

不兼容的变更

您可以 在这里 阅读有关迁移过程的更多信息。

Spring Cloud OpenFeign

  • 移除了 Spring Cloud Commons HttpClient 接口的使用 (#788)
  • Apache HttpClient 4 已被移除,改为使用 Apache HttpClient 5 (#783)
  • 升级到 Feign 12.0 (#782)

Spring Cloud Commons

  • 移除了依赖于 Apache HttpClient v4 的接口。移除了 OK HttpClient 接口,因为它们仅被 Spring Cloud OpenFeign 使用。Spring Cloud OpenFeign 现在直接使用 OK HttpClient (#1171)

  • 已移除已弃用的类和接口。请参阅 Spring Cloud 2022 Release Notes 中的不兼容变更。

Spring Cloud Gateway

已添加 原生镜像支持

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

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

一如既往,我们欢迎大家在 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-RC2</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 '3.0.0-RC2'
  id 'io.spring.dependency-management' version '1.1.0'
}

repositories {
  mavenCentral()
  maven { url 'https://repo.spring.io/milestone' }
}

ext {
  set('springCloudVersion', "2022.0.0-RC1")
}

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

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

获取 Spring 新闻通讯

通过 Spring 新闻通讯保持联系

订阅

领先一步

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

了解更多

获得支持

Tanzu Spring 提供 OpenJDK™、Spring 和 Apache Tomcat® 的支持和二进制文件,只需一份简单的订阅。

了解更多

即将举行的活动

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

查看所有