解决方案:
@RabbitListener(xxx) public void handle(String content){ System.out.println(content); }
修改为:
@RabbitListener(xxx) public void handle(org.springframewoork.amqp.core.Message content){ System.out.println(new String(content.getBody())); }
解决方案:
@RabbitListener(xxx) public void handle(String content){ System.out.println(content); }
修改为:
@RabbitListener(xxx) public void handle(org.springframewoork.amqp.core.Message content){ System.out.println(new String(content.getBody())); }