6.0 和 6.1 之间的变化

新组件

Zip 支持

Zip Spring Integration Extension 项目已作为spring-integration-zip模块。 有关更多信息,请参阅 Zip 支持spring-doc.cadn.net.cn

ContextHolderRequestHandlerAdvice

ContextHolderRequestHandlerAdvice允许将请求消息中的值存储到周围的某个上下文中MessageHandler执行。 有关更多信息,请参阅 Context Holder Advicespring-doc.cadn.net.cn

handleReactive()Java DSL 的运算符

IntegrationFlow现在可以以方便的handleReactive(ReactiveMessageHandler)算子。 看ReactiveMessageHandler了解更多信息。spring-doc.cadn.net.cn

PartitionedChannel

新的PartitionedChannel引入了处理同一线程中具有相同分区键的消息。 看PartitionedChannel了解更多信息。spring-doc.cadn.net.cn

一般更改

  • 添加了对与 Protocol Buffers 之间转换的支持。 有关更多信息,请参阅 Protocol Buffers Transformersspring-doc.cadn.net.cn

  • MessageFilter现在,当 message 被静默丢弃并丢弃时,它会向日志发出警告。 有关更多信息,请参阅过滤器spring-doc.cadn.net.cn

  • 网关和回复通道适配器中的发送和接收作的默认超时已从无穷大更改为30秒。 只剩下一个作为1second 是receiveTimeoutPollingConsumer不阻塞调度程序线程太长时间,并允许其他排队任务使用TaskScheduler.spring-doc.cadn.net.cn

  • IntegrationComponentSpec.get()方法已弃用,并计划在下一个版本中删除。 因为IntegrationComponentSpec是一个FactoryBean,则其 bean 定义必须保持原样,没有任何目标对象分辨率。 Java DSL 和框架本身将管理IntegrationComponentSpec生命周期。 有关更多信息,请参阅 Java DSLspring-doc.cadn.net.cn

  • AbstractMessageProducingHandler标记为async默认情况下,如果其 Output Channel 配置为ReactiveStreamsSubscribableChannel. 有关更多信息,请参阅 Asynchronous Service Activatorspring-doc.cadn.net.cn

Web Sockets 更改

一个ClientWebSocketContainer现在可以使用预定义的URI而不是uriTemplateuriVariables. 有关更多信息,请参阅 WebSocket 概述spring-doc.cadn.net.cn

JMS 更改

JmsInboundGateway,通过其ChannelPublishingJmsMessageListener现在可以使用replyToExpression在运行时根据请求消息解析回复目标。 有关更多信息,请参阅 JMS 入站网关spring-doc.cadn.net.cn

邮件更改

的(以前已弃用)ImapIdleChannelAdapter.sendingTaskExecutor属性已被删除,以支持流中下游的异步消息进程。 有关更多信息,请参阅 Mail-receiving Channel Adapterspring-doc.cadn.net.cn

文件更改

FileReadingMessageSource现在公开watchMaxDepthwatchDirPredicate选项WatchService. 看 WatchServiceDirectoryScanner了解更多信息。spring-doc.cadn.net.cn

AMQP 更改

用于 Rabbit Streams 的 Java DSL API(RabbitStreamfactory) 为简单配置公开其他属性。 看RabbitMQ Stream Queue Support了解更多信息。spring-doc.cadn.net.cn

JDBC 更改

DefaultLockRepository现在公开 setterinsert,updaterenew查询。 有关更多信息,请参阅 JDBC Lock Registryspring-doc.cadn.net.cn