springboot+rabbitmq启动报错: java.net.SocketException: socket closed

第一次整合springboot+rabbitmq,控制台启动报错:

java.net.SocketException: socket closed
 
Caused by: com.rabbitmq.client.ShutdownSignalException: connection error; protocol method: #method(reply-code=530, reply-text=NOT_ALLOWED - access to vhost '/' refused for user 'hansin', class-id=10, method-id=40)

检查账号密码端口号都没有问题,报错提示没有权限连接失败。

打开rabbitMq的web管理页

http://172.16.192.129:15672

 

springboot+rabbitmq启动报错: java.net.SocketException: socket closed_第1张图片

解决方法:

双击用户名赋予权限。

springboot+rabbitmq启动报错: java.net.SocketException: socket closed_第2张图片

重新启动,一切正常。

你可能感兴趣的:(springcloud)