我发现“ 默认 “errorChannel”是一个 PublishSubscribeChannel”,但我无法理解 为什么 .我们可以使用直接 channel 吗?什么是缺点使用直接 channel 作为errorChannel 的入站 channel ?
[ https://docs.spring.io/spring-integration/docs/5.0.5.RELEASE/reference/html/configuration.html#namespace-errorhandler][1]
最佳答案
您可以使用您喜欢的任何 channel 类型覆盖默认错误 channel 。没有缺点。
订阅了日志处理程序的 Pub/Sub 只是默认设置。
关于spring - 为什么 spring 集成中默认的 "errorChannel"是 "PublishSubscribeChannel"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62382177/