//具体参看了配置的源码
org.springframework.boot.autoconfigure.amqp.RabbitProperties


//RabbitMQ单机
spring:
  rabbitmq:
    host: localhost
    port: 5672
    username: your_username
    password: your_password

//或者  RabbitMQ单机,只使用addresses
spring:
  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

 

相关文章:

  • 2021-11-03
  • 2022-03-02
  • 2022-02-18
  • 2021-07-09
  • 2019-10-28
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-09-29
  • 2021-08-30
  • 2021-10-16
  • 2021-08-22
相关资源
相似解决方案