MQ consumer end conversion error:
The main error message:
Caused by: org.springframework.messaging.converter.MessageConversionException: of Can not Convert For from [[B] to [COM *** *** *** ***].... GenericMessage for
[payload byte = [12 is], = {amqp_receivedDeliveryMode = NON_PERSISTENT headers, the ENT amqp_receivedRoutingKey = _ *** _ NOTICE, amqp_deliveryTag =. 4, the ENT amqp_consumerQueue = _ *** _ NOTICE,
amqp_redelivered = to false, ID = cf822382-2a6e-8030-ADD4 -b59bfa561e34, amqp_consumerTag = amq.ctag-2BJwxJlkUYKxiAkxPc67kA, timestamp = 1559721028305}]
solution Alternatively point mq default serializer.
/ ** * { @link org.springframework.boot.autoconfigure.amqp.RabbitAutoConfiguration} * will automatically recognize * @param ObjectMapper JSON serialization implementation classes * @return MQ message sequence tool * / @Bean public the MessageConverter jsonMessageConverter (ObjectMapper ObjectMapper ) { return new new Jackson2JsonMessageConverter (ObjectMapper); }