Skip to content

BytesJsonMessageConverter with @Header(KafkaHeaders.RECEIVED_MESSAGE_KEY) #1949

Answered by garyrussell
jkupcho asked this question in Q&A
Discussion options

You must be logged in to vote

MessageConverters are only applied to payloads, not headers.

You would need to use the JsonDeserializer for the key if you want to convert the JSON (or receive it as Bytes) and do the conversion yourself.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jkupcho
Comment options

Answer selected by jkupcho
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants