您需要
ErrorHandlingDeserializer:https : //docs.spring.io/spring-
kafka/docs/2.2.0.RELEASE/reference/html/_reference.html#error-handling-
deserializer
如果无法升级到该
2.2版本,请考虑实施自己的版本并返回
null无法正确反序列化的那些记录。
- 源代码在这里:[https](https://github.com/spring-projects/spring-
- kafka/blob/master/spring-
- kafka/src/main/java/org/springframework/kafka/support/serializer/ErrorHandlingDeserializer2.java)
- //github.com/spring-projects/spring-kafka/blob/master/spring-
kafka/src/main/java/org/springframework/kafka/support/serializer/ErrorHandlingDeserializer2.java
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)