RabbitMQ简单实例
yaml配置文件
1 | spring: |
配置文件RabbitMqConfig
1 | import lombok.Data; |
常量RabbitMqConstants
1 | /** |
队列 PayQueueConfig
1 | package com.folkspace.pay.rabbitmq.queue; |
生产者PayMsgSender
1 | import com.folkspace.pay.rabbitmq.constants.RabbitMqConstants; |
消费者PayMsgReceiver
1 | import com.folkspace.pay.rabbitmq.constants.RabbitMqConstants; |
测试类TestController
1 | import com.folkspace.pay.rabbitmq.sender.PayIcbcCallbackAmountMsgSender; |