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



>我发现">默认的"errorChannel"是PublishSubscribeChannel",但我不明白为什么。我们可以改用直接渠道吗?使用直接通道作为错误通道的入站通道有什么缺点

[https://docs.spring.io/spring-integration/docs/5.0.5.RELEASE/reference/html/configuration.html#namespace-errorhandler][1]

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

订阅了日志记录处理程序的发布/订阅只是默认值。

最新更新