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");
  • 相关阅读:
    pod 安装
    Mac百度云破解限速-修复选中没有导出下载
    swift -SnapKit一些基本使用
    xcode 显示多个重复模拟器
    xcode选择模拟器显示No Scheme
    Xcode删除指定版本的模拟器
    javaScript基础
    Dao模式多表联查
    SQLServer数据库
    数据库错题分析
  • 原文地址:https://www.cnblogs.com/leigepython/p/11016630.html
Copyright © 2011-2022 走看看