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")

posted on 2018-05-01 13:42  whynotybb  阅读(994)  评论(0编辑  收藏  举报