![](/img/trans.png)
[英]Spring cloud stream multi binder - Error KStreamBinderConfiguration required a single bean, but 2 were found
[英]Spring cloud stream binder - Invalid bean definition
我在我的应用程序的服务激活器中使用: some-eventhub.some-service-1.errors
来监听错误通道。
Stream binder 1.2.8 和 Spring boot 2.2.2
我的应用程序中经常收到以下异常消息:-
Invalid bean definition with name 'some-eventhub.some-service-1.errors.recoverer' defined in null: Cannot register bean definition
[Root bean: class [org.springframework.integration.handler.advice.ErrorMessageSendingRecoverer]; scope=; abstract=false; lazyInit=null; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null] for bean 'some-eventhub.some-service-1.errors.recoverer': There is already [Root bean: class [org.springframework.integration.handler.advice.ErrorMessageSendingRecoverer]; scope=; abstract=false; lazyInit=null; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null] bound.
这是因为它一直在尝试注册一个已经注册的错误通道恢复器。 同一个消费者组(“some-service-1”)可能有多个绑定到同一个错误主题(“some-eventhub”)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.