文章标题
2016-01-24 20:33
239 查看
测试文章
测试CSDN文章格式和书写代码
import java.io.IOException; import com.rabbitmq.client.Channel; import com.rabbitmq.client.Connection; import com.rabbitmq.client.ConnectionFactory; import com.rabbitmq.client.MessageProperties; /** * 消息持久化 * @author menghh * */ public class Send04 { public static void main(String[] args) throws IOException { ConnectionFactory factory = new ConnectionFactory(); //RabbitMQ-Server安装在本机,所以直接用127.0.0.1 factory.setHost("127.0.0.1"); //创建一个连接 Connection conn = factory.newConnection(); //创建一个通信通道 Channel channel = conn.createChannel();
相关文章推荐
- LeetCode Subsets
- Fzu2109 Mountain Number 数位dp
- .pyc和.pyo文件有何用
- MongodbVUE使用手册和Mongodb的坑
- iOS开发UI篇:核心动画
- BZOJ1051 HAOI2006受欢迎的牛
- 图像处理中,各个颜色及代表的编码
- matlab图像缩放算法简单原理
- 为什么要学习编译
- 不要对数组和指针运算使用多态
- Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks论文笔记
- 迷宫问题(输出路径)
- ecshop 函数列表大全
- 实战:使用Docker配置ubuntu下的scrapy爬虫环境
- 堆排序算法
- [转]超全面的.NET GDI+图形图像编程教程
- 机器学习中的数学(2)-线性回归,偏差、方差权衡
- Block上篇
- Android HTTPS认证之Volley封装
- 166 Fraction to Recurring Decimal