【已解决】Caused by: com.rabbitmq.client.ShutdownSignalException: #method<channel.close>(reply-code=404,)

项目场景:

在这里插入图片描述

Caused by: com.rabbitmq.client.ShutdownSignalException: channel error;
protocol method: #method<channel.close>(reply-code=404,
reply-text=NOT_FOUND - no exchange ‘weather’ in vhost ‘/’,
class-id=50, method-id=20)

解决方案:

翻译过来就是 weather 交换机在 / 当前目录下找不到嘛。
那我就在/ 下新建一个交换机不就好了。

在这里插入图片描述

再次运行成功不报错。
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/qq_43055855/article/details/111171895
今日推荐