我代表社区高兴地宣布,Spring Cloud 2022.0.0版列车的里程碑4(M4)今天已经发布。该版本可以在Spring Milestone仓库中找到。你可以查看2022.0发布说明以了解更多信息。
2022.0.0发布列车中值得注意的变化
参见项目页面,了解该版本中包含的所有问题和拉动请求。
Spring Cloud 2022.0.0-M4与Spring Boot 3.0.0-M4兼容。
Spring Cloud Stream
- 完全反应式Kafka绑定器的初始版本
- 通过BiFunction改进对Kafka墓碑记录的支持
- 对Spring Native的改进
春天云配置
春天云网关
- 将JSON添加到gRPC过滤器(#2657)
春天云功能
- 支持BiFunction来表示Spring消息
- 春天可观察性模块
春天云任务
- 支持对应用程序中的ApplicationRunner和CommandlineRunner进行观察。
- Spring Cloud Task现在利用Micrometer Observations来捕获任务指标。
- 用户可以在单步批处理作业中为jdbc-item reader和或jdbc-item writer指定不同的数据源。(#848)
Spring Cloud Vault
- 升级到Spring Vault 3.0.0-M2(#647
Spring Cloud Commons
- 增加了急切地创建LoadBalancer子上下文的可能性(#729)
以下模块作为2022.0.0-M4的一部分进行了更新。
| 模块 | 版本 | 问题 |
|---|---|---|
| Spring Cloud Stream | 4.0.0-M4 | |
| 春天云配置 | 4.0.0-M4 | (问题) |
| Spring Cloud Build | 4.0.0-M4 | |
| 春天云 Consul | 4.0.0-M4 | (问题) |
| Spring Cloud Kubernetes | 3.0.0-M4 | (问题) |
| 春天云网关 | 4.0.0-M4 | |
| Spring Cloud Starter Build | 2022.0.0-M4 | |
| 春天云断路器 | 3.0.0-M4 | |
| 春天云合同 | 4.0.0-M4 | (问题) |
| Spring Cloud Bus | 4.0.0-M4 | |
| 春天云功能 | 4.0.0-M4 | |
| 春天云任务 | 3.0.0-M4 | (问题) |
| Spring Cloud Zookeeper | 4.0.0-M4 | |
| Spring Cloud Openfeign | 4.0.0-M4 | |
| 春天云Vault | 4.0.0-M4 | (问题) |
| Spring Cloud Commons | 4.0.0-M4 | (问题) |
一如既往,我们欢迎在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-M4</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-M4'
}
}
dependencies {
compile 'org.springframework.cloud:spring-cloud-starter-config'
compile 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
...
}