Spring Kafka error handling - v1.1.x

≡放荡痞女 提交于 2019-12-10 15:03:05

问题


How to deal with error handling in spring-kafka version 1.1.x?

As I see it was introduced in version 2.0...


回答1:


In 1.x you can add an ErrorHandler implementation to the listener container (or container factory if you are using @KafkaListener annotations).

The 2.0 feature was added to make it easier to configure if you want a different error handler for each listener when using annotations.



来源:https://stackoverflow.com/questions/43912292/spring-kafka-error-handling-v1-1-x

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!