Spring Integration 5.3 RC1(Release Candidate 1)、5.2.6 和 5.1.10 是 Spring Integration 项目在 2020 年初发布的多个
Spring Integration 5.3 RC1Release 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 为例 --dependencygroupIdorg.springframework.integration/groupIdartifactIdspring-integration-core/artifactIdversion5.2.6.RELEASE/version/dependencySpring Integration 5.3 RC1, 5.2.6 5.1.10 AvailableI’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 中为实验性ExperimentalApi5.3.0 GA 中移除实验标记提供完整文档、测试覆盖和生产就绪保障支持将FluxMessage?直接作为消息源/目标与ReactiveChannel集成更自然。Kafka 支持升级至 Spring Kafka 2.5引入KafkaListenerEndpointRegistry集成、动态KafkaListener注册、以及对RecordFilterStrategy的响应式适配。R2DBC 模块正式发布spring-integration-r2dbc支持响应式数据库操作如R2dbcOutboundGateway、R2dbcMessageHandler替代传统 JDBC 的阻塞式交互。SFTP/FTP 模块增强新增StreamingRemoteFileTemplate支持流式上传/下载避免内存缓存大文件并改进连接池与异常恢复逻辑。DSL 改进IntegrationFlowBuilder新增.transform(Transformers.fromJson(...))等便捷方法IntegrationFlow.from(Flux)重载支持原生响应式源头接入。Observability 增强默认启用 MicrometerTimer和Counter指标如integration.handler.duration,integration.channel.send.count并支持 OpenTracing/OpenTelemetry需显式配置。⚠️Breaking Changes需代码适配移除已废弃类/方法删除AbstractMessageSource中过时的setBeanFactory()方法自 5.0 起标记为Deprecated移除MessageHistory中getHistory()返回ListString的旧方法统一使用getHistoryAsList()废弃DefaultHeaderMapper的setAllowedHeaders(String...)改用setAllowedHeaders(SetString)。MessageChannel默认行为变更DirectChannel和ExecutorChannel的send()方法在超时场景下不再静默吞掉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.7RC1 兼容 5.2.5且不兼容 Spring Framework 5.1.x同时要求 Spring Boot 2.2.8 或 2.3.0。 补充说明所有 breaking changes 均已在 Spring Integration 5.3 Migration Guide 中详细列出并提供迁移脚本建议。