码迷,mamicode.com
首页 > 编程语言 > 详细

springboot操作rabbitmq

时间:2019-06-13 15:43:00      阅读:117      评论:0      收藏:0      [点我收藏+]

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

////DirectExchange directExchange = new DirectExchange("test.direct");
////amqpAdmin.declareExchange(directExchange);
//
////Map<String,Object> 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<String, Object> map = new HashMap<>();
//map.put("x-max-length", 10);
//declareQueue(new Queue("test:count", true, false, false, map));
//Map<String,Object> 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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!