摘要:
队列设置过期时间 在生产者建TTL配置类 @Configuration public class TTLRabbitmqConfiguration { //声明交换机 @Bean public DirectExchange ttlDirectExchange(){ return new Direct 阅读全文
posted @ 2021-06-14 10:11
卡卡罗特琪琪
阅读(139)
评论(0)
推荐(0)
摘要:
在direct模式基础上改,但是此次使用注解方式 消费者 修改对应的consumer,用注解方式定义交换机和队列的关系 @Service @RabbitListener(bindings = @QueueBinding( value = @Queue(value = "duanxin.topic.q 阅读全文
posted @ 2021-06-14 08:31
卡卡罗特琪琪
阅读(483)
评论(0)
推荐(0)

浙公网安备 33010602011771号