springboot操作rabbitmq

2020-12-13 01:53

阅读:519

标签:rabbitmq   ash   rect   hashmap   send   false   shm   map   binding   

////DirectExchange directExchange = new DirectExchange("test.direct");
////amqpAdmin.declareExchange(directExchange);
//
////Map map = new HashMap();
////map.put("x-max-length",10);
//
////Queue queue = new Queue("test:count",true,false,false,map);
//Queue queue = new Queue("test:count");
//amqpAdmin.declareQueue(queue);
////Binding binding = new Binding("test.direct", Binding.DestinationType.EXCHANGE,"test.direct","test:test",null);
////Binding binding = new Binding("test:queue", Binding.DestinationType.QUEUE, "test.direct", "test.teset", null);
////amqpAdmin.declareBinding(binding);

//Map map = new HashMap();
//map.put("x-max-length", 10);
//declareQueue(new Queue("test:count", true, false, false, map));
//Map map = new HashMap();
//map.put("x-max-length",10);
//amqpAdmin.declareQueue(new Queue("test:count",true,false,false,map));
//Binding binding = new Binding("test:count", Binding.DestinationType.QUEUE, "jd.direct", "jd.dir", null);
//amqpAdmin.declareBinding(binding);

//rabbitTemplate.convertAndSend("jd.direct","jd.dir","hello world");

springboot操作rabbitmq

标签:rabbitmq   ash   rect   hashmap   send   false   shm   map   binding   

原文地址:https://www.cnblogs.com/leigepython/p/11016630.html


评论


亲,登录后才可以留言!