Last updated 6 years ago
Was this helpful?
RabbitMQ是一个基于AMQP协议,轻量级的,可靠的,可扩展的和可移植的消息代理,Spring就使用它进行消息传递。RabbitMQ配置被外部属性spring.rabbitmq.*控制,例如,在application.properties中声明以下片段:
spring.rabbitmq.*
application.properties
spring.rabbitmq.host=localhost spring.rabbitmq.port=5672 spring.rabbitmq.username=admin spring.rabbitmq.password=secret
更多选项参考。