使用Spring Cloud Config小结

PLAIN login refused: user 'admin' - invalid credentials

 

Docker中安装RabbitMQ后,访问15672控制台正常访问,应用启动后报错

Failed to create consumer binding; retrying in 30 seconds

org.springframework.cloud.stream.binder.BinderException: Exception thrown while starting consumer: 

An unexpected connection driver error occured

java.net.SocketException: socket closed

使用docker logs -f rabbitmq3.7.7查看 Docker日志,发现报错

PLAIN login refused: user 'admin' - invalid credentials

无权限访问,添加用户, 并设置权限

 

 设置Virtual Hosts

 

 

配置用户权限

 

 删除my_vhost权限,后应用正常

 

 

访问http://localhost:8760/actuator/bus-refresh,mq正常

 

posted @ 2020-02-25 15:17  huanghaunghui  阅读(4622)  评论(0编辑  收藏  举报