How to configure DelegatingByTopicSerialization from application.yml #2523
-
Hi, I am trying to make use of DelegatingByTopicSerialization as i need different serializer for different topic but to consume it i am trying to configure it with VALUE_SERIALIZATION_TOPIC_CONFIG on application.yml but the constructor is not called. I dont know what i am missing in configuration. spring.kafka.consumer: I also tried to do an bean
Both it didn't worked valueserializer was still using StringDeserializer Can you help me how to configure the DelegatingByTopicSerialization through applucation.yml. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
You probably are missing to set: Please, consider to share with us more of your YAML config and in more readable format. |
Beta Was this translation helpful? Give feedback.
You probably are missing to set:
spring.kafka.consumer.value-deserializer=org.springframework.kafka.support.serializer.DelegatingByTopicDeserializer
.Please, consider to share with us more of your YAML config and in more readable format.
Of course if
value-deserializer
doesn't help.There is another way: share with us a simple project to reproduce and play with.