BytesJsonMessageConverter with @Header(KafkaHeaders.RECEIVED_MESSAGE_KEY) #1949
-
|
Given the following The following MessageConverter: And the following Deserializer configuration: If I remove the I'm not exactly sure what could be causing this, I'm both key and value objects are being serialized as Lastly, if I add Any help would be appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
You would need to use the |
Beta Was this translation helpful? Give feedback.
MessageConverters are only applied to payloads, not headers.You would need to use the
JsonDeserializerfor the key if you want to convert the JSON (or receive it asBytes) and do the conversion yourself.