当前位置: 首页 > news >正文

Spring Integration 5.3 RC1(Release Candidate 1)、5.2.6 和 5.1.10 是 Spring Integration 项目在 2020 年初发布的多个

Spring Integration 5.3 RC1(Release Candidate 1)、5.2.6 和 5.1.10 是 Spring Integration 项目在 2020 年初发布的多个版本,分别面向不同主版本的维护与演进:

  • Spring Integration 5.3 RC1:是 5.3.x 系列的首个候选发布版,引入了多项新特性与改进,例如对 Project Reactor 的更深度集成(如FluxMessageChannel实验性支持)、增强的 Kafka 绑定器(基于 Spring Kafka 2.5)、对 R2DBC 的初步适配、以及对 Spring Framework 5.3 M1 的兼容性准备。注意:RC 版本不建议用于生产环境。

  • Spring Integration 5.2.6:是 5.2.x 系列的维护更新,主要包含 bug 修复、安全加固(如 CVE 修复)、依赖升级(如 Spring Framework 5.2.6、Spring AMQP 2.2.6 等),并保持向后兼容性,适用于正在使用 5.2.x 的生产系统。

  • Spring Integration 5.1.10:属于长期维护分支(LTS-like,虽非官方 LTS,但 5.1.x 被广泛采用),同样聚焦于稳定性修复与关键漏洞修补,兼容 Spring Framework 5.1.x,适合无法升级至 5.2+ 的遗留系统。

这些版本均已于 2020 年 4 月左右发布(参考 Spring Blog 原文:Spring Integration 5.3 RC1, 5.2.6 & 5.1.10 Available),现已归档;当前推荐使用最新稳定版(如 6.x 系列,需配合 Spring Framework 6+ 和 Jakarta EE 9+)。

<!-- Maven 示例(以 5.2.6 为例) --><dependency><groupId>org.springframework.integration</groupId><artifactId>spring-integration-core</artifactId><version>5.2.6.RELEASE</version></dependency>

Spring Integration 5.3 RC1, 5.2.6 & 5.1.10 Available

I’m pleased to announce the first (and the last) release candidate for Spring Integration 5.3.

This release ships several bug fixes, a bunch of new features and improvements and will be picked up by Spring Boot 2.3 RC1.

It can be downloaded from our milestone repository:

compile ‘org.springframework.integration:spring-integration-core:5.3.0.RC1’

The most important new features are:

The MongoDbChangeStreamMessageProducer - a reactive MessageProducerSupport implementation for the Spring Data ReactiveMongoOperations.changeStream(String, ChangeStreamOptions, Class) API. This component produces a Flux of messages with a body of ChangeStreamEvent as the payload by default and some change stream related headers (see MongoHeaders). The ReactiveMessageSourceProducer - a reactive implementation of the MessageProducerSupport to wrap a provided MessageSource into a Flux for on demand receive() calls. The ReceiveMessageAdvice - a former AbstractMessageSourceAdvice is graduated now to more common advice approach which can be used also for the PollableChannel.receive() proxying. The TcpOutboundGateway now can work in an async mode - you’ll get an actual reply from the returned Future. We also have applied a GitHub default community health. Check this out when you try to raise a new issue https://github.com/spring-projects/spring-integration/issues/new/choose!

See What’s New? in the Reference Manual for more information. Also see a blog post for the previous Milestone 3.

We’re looking forward to your feedback for upcoming GA in May!

In addition to this 5.3 RC1 we also have released maintenance versions - 5.2.6 & 5.1.10 with some bug fixes and upgrades. Based on Spring Integration 5.3 RC1 and Spring for Apache Kafka 2.5 RC1 a spring-integration-kafka-3.3.0.RC1 was also released to pick up improvements and new feature from its “parents”.
Spring Integration 5.3 正式版(5.3.0.RELEASE,发布于 2020 年 6 月 24 日)在 RC1 基础上进行了功能完善、稳定性增强与 API 收敛,主要新增关键特性及 breaking changes 如下:

关键新增特性

  • 正式支持FluxMessageChannel和响应式消息流:RC1 中为实验性(@ExperimentalApi),5.3.0 GA 中移除实验标记,提供完整文档、测试覆盖和生产就绪保障;支持将Flux<Message<?>>直接作为消息源/目标,与ReactiveChannel集成更自然。
  • Kafka 支持升级至 Spring Kafka 2.5:引入KafkaListenerEndpointRegistry集成、动态@KafkaListener注册、以及对RecordFilterStrategy的响应式适配。
  • R2DBC 模块正式发布(spring-integration-r2dbc:支持响应式数据库操作(如R2dbcOutboundGatewayR2dbcMessageHandler),替代传统 JDBC 的阻塞式交互。
  • SFTP/FTP 模块增强:新增StreamingRemoteFileTemplate支持流式上传/下载(避免内存缓存大文件),并改进连接池与异常恢复逻辑。
  • DSL 改进IntegrationFlowBuilder新增.transform(Transformers.fromJson(...))等便捷方法;IntegrationFlow.from(Flux)重载支持原生响应式源头接入。
  • Observability 增强:默认启用 MicrometerTimerCounter指标(如integration.handler.duration,integration.channel.send.count),并支持 OpenTracing/OpenTelemetry(需显式配置)。

⚠️Breaking Changes(需代码适配)

  • 移除已废弃类/方法
    • 删除AbstractMessageSource中过时的setBeanFactory()方法(自 5.0 起标记为@Deprecated);
    • 移除MessageHistorygetHistory()返回List<String>的旧方法(统一使用getHistoryAsList());
    • 废弃DefaultHeaderMappersetAllowedHeaders(String...)(改用setAllowedHeaders(Set<String>))。
  • MessageChannel默认行为变更DirectChannelExecutorChannelsend()方法在超时场景下,不再静默吞掉InterruptedException,而是包装为MessagingException抛出(提升可观测性)。
  • Kafka 绑定器包路径调整org.springframework.integration.kafka.inbound.KafkaMessageDrivenChannelAdapter迁移至org.springframework.integration.kafka.dsl.KafkaDSL 命名空间,XML 配置中<int-kafka:inbound-channel-adapter>message-driven-channel-adapter属性语义微调(推荐迁移到 Java DSL)。
  • 依赖版本强制升级:要求最低 Spring Framework5.2.7+(RC1 兼容 5.2.5),且不兼容 Spring Framework 5.1.x;同时要求 Spring Boot 2.2.8+ 或 2.3.0+。

📌 补充说明:所有 breaking changes 均已在 Spring Integration 5.3 Migration Guide 中详细列出,并提供迁移脚本建议。

http://www.jsqmd.com/news/485153/

相关文章:

  • Siri Ultra开发路线图:未来将新增哪些令人期待的LLM功能?
  • asp毕业设计——基于asp+access的网上拍卖系统设计与实现(毕业论文+程序源码)——网上拍卖系统
  • 如何使用Goque:Go语言持久化数据结构的终极指南
  • Spring Tools 4.6.1 是 Spring Tools Suite(STS)的继任者——Spring Tools for Eclipse(基于 Eclipse IDE)的一个维护版本
  • Social-Engineer Toolkit (SET) 终极指南:10大社会工程攻击向量深度解析
  • 如何快速上手Touca:面向团队的持续回归测试工具完整指南
  • 告别单调命令行!logo-ls让你的文件列表秒变可视化界面
  • asp毕业设计——基于asp+access的网上售房管理系统设计与实现(毕业论文+程序源码)——网上售房管理系统
  • ThreadLocal为什么能实现线程数据隔离
  • asp毕业设计——基于asp+access的网上体育用品商店设计与实现(毕业论文+程序源码)——网上体育用品商店
  • UEDumper常见问题解决:新手必看的10个故障排除技巧
  • 如何快速上手PSLab硬件项目:从设计到实践的完整指南
  • 如何使用1History:完整的个人浏览历史管理工具教程
  • Unity安卓环境配置踩坑:you are not using the recommended xxx 如何处理
  • Bootstrap-select CDN部署终极指南:快速优化网页加载速度的5个技巧
  • 52单片机的定时器/计数器2的功能
  • 如何在Mac上安装与使用Emacs Mac Port:完整指南
  • Tessera高级特性:如何利用数据转换实现动态仪表盘交互
  • 如何快速集成 Social Likes:为网站添加美观点赞按钮的完整指南
  • 如何快速上手rpg_trajectory_evaluation?5分钟完成安装与基础配置
  • Vue Skills:让AI写代码更懂你的Vue项目
  • 如何利用Social-Engineer Toolkit实现高效邮件攻击:SMTP客户端终极使用指南
  • 动态热机械分析仪选购指南:2026品牌企业中,日立分析仪器何以成为行业标杆? - 品牌推荐大师1
  • [学习] RTKLib详解:qzslex.c、rcvraw.c与solution.c
  • 探索v2ex-gae:在Google App Engine上构建V2EX社区的完整指南
  • 如何用Protege Desktop构建第一个OWL本体?5步快速入门教程
  • 如何快速集成 react-medium-editor:打造专业级富文本编辑体验
  • OpenClaw 报错解决大全:30 个高频错误信息速查与修复
  • 从源码到实践:swift-corelibs-xctest架构与实现原理
  • ThreatHunting仪表板完全指南:从Process Create到DNS监控的8大场景实战