rabbitmq
文章平均质量分 90
怵生
这个作者很懒,什么都没留下…
展开
-
springboot 和 rabbitmq 实现同步和异步队列
异步队列配置代码@Component@RabbitListener(bindings = {@QueueBinding(value = @Queue(value = "async"), exchange = @Exchange(value = "async.exchange"))})public class AsyncConsumer { public void execute原创 2018-02-01 14:26:36 · 10120 阅读 · 1 评论 -
rabbitmq 死信队列的使用方式
一.代码+配置 1.首先建立一个队列,标示为死信队列Connection connection = connectionFactory.newConnection();Channel channel = connection.createChannel();channel.exchangeDeclare("some.exchange.name", "direct");Map args原创 2018-02-01 14:58:40 · 14985 阅读 · 0 评论