启动springboot服务,rabbitmq报An unexpected connection driver error occured (Exception message: Socket closed)

原因

spring.rabbitmq.connection-timeout 设置过小,导致连接超时,未建立连接

解决办法

增加spring.rabbitmq.connection-timeout 的值,再设大一点

posted @ 2020-03-10 10:48  imfx  阅读(6883)  评论(0编辑  收藏  举报