zoukankan      html  css  js  c++  java
  • springboot操作rabbitmq

    ////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");
  • 相关阅读:
    python-高阶函数(map,reduce,filter)
    python-函数(补充)
    python-局部变量与全局变量
    python-函数
    字符串格式化
    pycharm2019.1激活方法(亲测可用)
    python-集合
    python-字典
    keepalivd 配置
    zabbix3 agent端安装
  • 原文地址:https://www.cnblogs.com/leigepython/p/11016630.html
Copyright © 2011-2022 走看看