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

原因

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

解决办法

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

猜你喜欢

转载自www.cnblogs.com/imfx/p/12454299.html