報錯截圖
其中原因:
Caused by: com.rabbitmq.client.ShutdownSignalException: connection error; protocol method: #method<connection.close>(reply-code=530, reply-text=NOT_ALLOWED - vhost birman not found, class-id=10, method-id=40)
vhost沒找到
於是我去檢查yml,發現我的virtual-host的值寫錯了,不是我配置的mq的virtual-host名字,改正之后就可以了。
如果檢查配置,發現都寫對了,就參考一下這個博客:https://blog.csdn.net/fly_leopard/article/details/102551246