spring boot 集成RabbitMQ的异常

 com.rabbitmq.client.ShutdownSignalException: channel error; protocol method: #method<channel.close>(reply-code=404, reply-text=NOT_FOUND - no queue 'hello1' in vhost '/', class-id=50, method-id=10

需要新建消息队列,并且要保证每个消息队列的key(下面的hello)是存在的。

@RabbitListener(queues = "hello")

猜你喜欢

转载自www.cnblogs.com/Whynot1/p/8976115.html