I am new to spring cloud stream rabbitmq binder and tried to integrate rabbitmq binder of spring cloud stream but not able to find any specific properties so not sure about Avro message converter part as it my response is in byte array.
I have tried to follow same like this one -> https://github.com/spring-cloud/spring-cloud-stream-samples/tree/main/schema-registry-samples/schema-registry-vanilla-rabbit-binder but not working in my case as,
above configs are not working and displaying my message in bytes only,
I am using 2.7.6 spring boot version version with JDK 8 for the same.
@Bean
public MessageConverter jsonMessageConverter() {
ObjectMapper objectMapper = new ObjectMapper();
return new Jackson2JsonMessageConverter(objectMapper);
}
Above bean is used in rabbitmq listener as below,
SimpleRabbitListenerContainerFactory sf = new ...()
sf.setMessageConverter(jsonMessageConverter());
and the message converter here is of amqp package not of spring package.