RabbitMQ学习

//创建消息队列 @Configuration public class QueueConfig{ //创建队列 @Bean public Queue createQueue(){ return new Queue(“hello-queue”); } } //消息发送者 @Component public class Sender{ @Autowired private AmqpTemplate
相关文章
相关标签/搜索