AmqpConnectException: java.net.ConnectException: Connection timed out: conn

org.springframework.amqp.AmqpConnectException: java.net.ConnectException: Connection timed out: connect

在SpringBoot中使用RabbitMQ 连接不成功的解决方法:
  • 1、SpringBoot的版本和RabbitMQ的版本不对应

  • 2、连接端口,默认5672,连接主机的端口也要没限制,ip地址要正确可访问

  • 3、交换器和路由键是否错误

猜你喜欢

转载自blog.csdn.net/LiGuanLink/article/details/118294296