com.rabbitmq.client.ShutdownSignalException: connection error; protocol method: #method<connection.c

项目场景:

记录一下MQ 提供者发送数据得时候报错 配置出现错误

//也可以参考这位大佬的

Caused by:com.rabbitmq.client.ShutdownSignalException: connection error;(reply-code=530, reply-text=NOT_ALLOWED - access to vhost '/' refused for user 'admin' - 奋斗的渣渣 - 博客园

问题描述:

com.rabbitmq.client.ShutdownSignalException: connection error; protocol method: #method<connection.close>(reply-code=530, reply-text=NOT_ALLOWED - vhost JCcccHost not found, class-id=10, method-id=40) 

解决方案:

1-先打开mq 管理页面

2-看下配置文件 yml   virtual-host: /  要跟上面端口对应得上

扫描二维码关注公众号,回复: 15513959 查看本文章

 3-重试一下直接发送成功

猜你喜欢

转载自blog.csdn.net/qq_38062838/article/details/122250878