lazyqueue队列非常强悍
springboot注解方式开启
// 使用注解的方式lazy.queue队列模式 非常Good
@RabbitListener(queuesToDeclare = @Queue(
name = "lazy.queue",
durable = "true",
arguments = @Argument(name = "x-queue-mode",value = "lazy")
))
public void listenLazyQueue(Message msg){
System.out.println(msg);
}
使用web管理端开启
