码迷,mamicode.com
首页 > 编程语言 > 详细

spring boot 集成RabbitMQ的异常

时间:2018-05-01 15:22:31      阅读:1058      评论:0      收藏:0      [点我收藏+]

标签:down   close   nbsp   pre   key   not   rabbit   com   新建   

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

spring boot 集成RabbitMQ的异常

标签:down   close   nbsp   pre   key   not   rabbit   com   新建   

原文地址:https://www.cnblogs.com/Whynot1/p/8976115.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!