赞
踩
启动主类,报如下异常:
c.r.c.impl.ForgivingExceptionHandler : An unexpected connection driver error occured (Exception message: Socket closed)
在application.properties中,关于rabbitMQ的配置如下:
spring.rabbitmq.host=localhost
spring.rabbitmq.port=5672
spring.rabbitmq.username=springbootba
spring.rabbitmq.password=123456
启动rabbit server,访问 http://localhost:15672/ ,使用默认账户 guest / guest 可以正常访问。
在配置文件中的 springbootba 用户,是我们自己新建的一个用户。
看到上图,基本上可以猜到该异常的解决办法了。
1),点击上图中的我们创建的账户“springbootba”。
2
赞
踩
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。