Spring Cloud Stream中的生产者异常处理程序

时间:2020-03-11 05:58:39

标签: spring-boot apache-kafka-streams spring-kafka spring-cloud-stream

我在用Spring Cloud Stream编写的Kafka Stream作业中遇到一个方案,生产者因异常而失败。

在kafka流中签入,有一个配置可以通过以下方式处理该问题: default.production.exception.handler

无法在Spring Cloud Stream中找到后续处理程序。 请帮助。预先感谢。

春季启动版本:2.2.4.RELEASE

1 个答案:

答案 0 :(得分:0)

default.production.exception.handler

您可以使用

设置任意的Kafka Streams属性。
spring.cloud.stream.kafka.streams.binder.configuration

财产。

请参见the documentation

所以只需将其添加到那里。