zoukankan      html  css  js  c++  java
  • Spring Boot项目配置RabbitMQ集群

    
    //具体参看了配置的源码
    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
  • 相关阅读:
    jQuery(2)
    jQuery(1)
    underscore.js
    面向对象复习
    1.14函数复习
    面向对象(3)继承
    10.18
    1017
    js笔记二
    js笔记一
  • 原文地址:https://www.cnblogs.com/tiancai/p/9890493.html
Copyright © 2011-2022 走看看