I am currently struggling hard with a fair simple problem. I want to receive a message from RabbitMQ and have that transformed into a string (or later a json object). But al
message.getBody() returns a byte[]
message.getBody()
byte[]
Try:
byte[] body = message.getBody(); System.out.println(new String(body));