赞
踩
Execution of Rabbit message listener failed.
Listener threw exception
@Compoment
public class Consumer {
@RabbitHandler
@RabbitListener(queues = {"QUEUE"})
public void receiveMessage(String message){
System.out.println("接收到的消息是 ->" + message);
}
原因是不要吧@RabbitListener(queues = {"QUEUE"})
放在public class 上,放在方法上
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。