//具体参看了配置的源码org.springframework.boot.autoconfigure.amqp.RabbitProperties//RabbitMQ单机spring: rabbitmq: host: localhost port: 5672 username: your_username password: your_password//或者 RabbitMQ单机,只使用addressesspring: rabbitmq: addresses:ip1:port1 username: your_username password: your_password//RabbitMQ集群,addresses一定要逗号分隔spring: rabbitmq: addresses:ip1:port1,ip2:port2,ip3:port3 username: your_username password: your_password