Spring Kafka错误处理-v1.1.x [英] Spring Kafka error handling - v1.1.x
本文介绍了Spring Kafka错误处理-v1.1.x的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何处理 spring -kafka 版本 1.1.x
?
推荐答案
在1.x版本中,您可以添加 ErrorHandler
实现到侦听器容器(如果使用 @KafkaListener
注释,则为容器工厂)。
In 1.x you can add an ErrorHandler
implementation to the listener container (or container factory if you are using @KafkaListener
annotations).
添加了2.0功能,以便在使用批注时为每个侦听器使用不同的错误处理程序,从而使配置更加容易。
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.
这篇关于Spring Kafka错误处理-v1.1.x的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文