application-mq.yml 765 B

123456789101112131415161718192021222324252627282930313233343536
  1. spring:
  2. profiles: dev
  3. rabbitmq:
  4. enable: false
  5. host: localhost
  6. port: 5672
  7. username: admin
  8. password: admin
  9. publisher-confirms: true
  10. publisher-returns: true
  11. template:
  12. mandatory: true
  13. listener:
  14. simple:
  15. concurrency: 2 # 最小消息监听线程数
  16. max-concurrency: 2 # 最大消息监听线程数
  17. virtual-host: /
  18. ---
  19. spring:
  20. profiles: prod
  21. rabbitmq:
  22. enable: false
  23. host: localhost
  24. port: 5672
  25. username: admin
  26. password: admin
  27. publisher-confirms: true
  28. publisher-returns: true
  29. template:
  30. mandatory: true
  31. listener:
  32. simple:
  33. concurrency: 2 # 最小消息监听线程数
  34. max-concurrency: 2 # 最大消息监听线程数
  35. virtual-host: /