为什么spring集成中默认的 "errorChannel "是 "PublishSubscribeChannel"?

问题描述 投票:0回答:1

我发现,"The 默认 "errorChannel "是一个 "PublishSubscribeChannel",但我不明白。何以. 能否用直接通道代替?什么是 缺点 使用直接通道作为错误通道的入站通道?

[https:/docs.spring.iospring-integrationdocs5.0.5.RELEASEreferencehtmlconfiguration.html#namespace-errorhandler][1] 。

spring error-handling spring-integration publish-subscribe
1个回答
0
投票

你可以用任何你喜欢的通道类型覆盖默认的错误通道。没有缺点。

带有订阅的日志处理程序的PubSub只是默认的。

© www.soinside.com 2019 - 2024. All rights reserved.