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

文章来自:https://www.cnblogs.com/Whynot1/p/8976115.html
© 2021 jiaocheng.bubufx.com  联系我们
ICP备案:鲁ICP备09046678号-3