spring boot 集成RabbitMQ的异常
时间:2018-05-01 14:33:42
收藏:0
阅读:4540
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")
原文:https://www.cnblogs.com/Whynot1/p/8976115.html
评论(0)