mq-rabbit.yml 478 B

12345678910111213141516171819
  1. # rabbitmq 配置模板
  2. # 优先从环境变量里取值
  3. shoulder:
  4. rabbitmq:
  5. ip: ${RABBITMQ_IP:127.0.0.1}
  6. port: ${RABBITMQ_PORT:5672}
  7. username: ${RABBITMQ_USERNAME:shoulder}
  8. password: ${RABBITMQ_PASSWORD:shoulder}
  9. spring:
  10. rabbitmq:
  11. enable: true
  12. host: ${shoulder.rabbitmq.ip}
  13. port: ${shoulder.rabbitmq.port}
  14. username: ${shoulder.rabbitmq.username}
  15. password: ${shoulder.rabbitmq.password}
  16. listener:
  17. type: direct # simple direct