当前位置:   article > 正文

【异常】SptingBoot+RabbitMQ整合出现的异常_c.r.c.impl.forgivingexceptionhandler : an unexpect

c.r.c.impl.forgivingexceptionhandler : an unexpected connection driver error

1,

启动主类,报如下异常:

c.r.c.impl.ForgivingExceptionHandler     : An unexpected connection driver error occured (Exception message: Socket closed)
  • 1

在application.properties中,关于rabbitMQ的配置如下:

spring.rabbitmq.host=localhost
spring.rabbitmq.port=5672
spring.rabbitmq.username=springbootba
spring.rabbitmq.password=123456
  • 1
  • 2
  • 3
  • 4

启动rabbit server,访问 http://localhost:15672/ ,使用默认账户 guest / guest 可以正常访问。
在这里插入图片描述
在配置文件中的 springbootba 用户,是我们自己新建的一个用户。
在这里插入图片描述
看到上图,基本上可以猜到该异常的解决办法了。

解决办法:

1),点击上图中的我们创建的账户“springbootba”。
2

声明:本文内容由网友自发贡献,转载请注明出处:【wpsshop】
推荐阅读
相关标签
  

闽ICP备14008679号