抢先一步
VMware 提供培训和认证,助你加速前进。
了解更多我代表社区高兴地宣布,Spring Cloud 2022.0 发布列车的 Release Candidate 3 (RC3) 版本今天已发布。该版本可以在 Spring 里程碑仓库中找到。你可以查看 2022.0 的发布说明以获取更多信息。
点击此处查看此版本中的所有问题。
Spring Cloud 2022.0.0-RC3 需要 Spring Boot 3.0.0。
src/test/resources/contracts
检查的支持 (#1848)查看最新的迁移指南条目以获取更多信息。
12.1
(#792)Spring Cloud Stream 中的测试绑定器已从核心 Spring Cloud Stream 模块移至一个单独的 artifact。在此版本之前,测试绑定器是核心模块的一部分,用户通过使用 test-binder
分类器来使用它,这很不方便。从此版本开始,测试绑定器现已移动并可通过 spring-cloud-stream-test-binder
模块获得。你可以将其作为依赖添加到你的应用程序中,并获得所有之前的测试绑定器组件。
改进了核心 Spring Cloud Stream 中的错误处理文档
Spring Cloud Stream Schema Registry 基于 AVRO 的转换器已更新至 AVRO 1.11.1
从本版本开始,AWS Kinesis 绑定器不再是 Spring Cloud Stream 发布列车的一部分,并将单独发布。
以下模块在 2022.0.0-RC3 版本中进行了更新
模块 | 版本 | 问题 |
---|---|---|
Spring Cloud Task | 3.0.0-RC3 | (问题) |
Spring Cloud Bus | 4.0.0-RC3 | |
Spring Cloud Contract | 4.0.0-RC3 | (问题) |
Spring Cloud Circuitbreaker | 3.0.0-RC3 | |
Spring Cloud Function | 4.0.0-RC3 | |
Spring Cloud OpenFeign | 4.0.0-RC3 | (问题) |
Spring Cloud Zookeeper | 4.0.0-RC3 | |
Spring Cloud Commons | 4.0.0-RC3 | (问题) |
Spring Cloud Vault | 4.0.0-RC3 | (问题) |
Spring Cloud Kubernetes | 3.0.0-RC3 | (问题) |
Spring Cloud Stream | 4.0.0-RC3 | |
Spring Cloud Starter Build | 2022.0.0-RC3 | |
Spring Cloud Consul | 4.0.0-RC3 | |
Spring Cloud Config | 4.0.0-RC3 | (问题 |
Spring Cloud Build | 4.0.0-RC3 | |
Spring Cloud Gateway | 4.0.0-RC3 | (问题) |
Spring Cloud Netflix | 4.0.0-RC3 |
一如既往,欢迎在 GitHub、Gitter、Stack Overflow 或 Twitter 上提供反馈意见。
使用 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-RC3</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'
id 'io.spring.dependency-management' version '1.1.0'
}
repositories {
mavenCentral()
maven { url 'https://repo.spring.io/milestone' }
}
ext {
set('springCloudVersion', "2022.0.0-RC3")
}
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'
}