摘要: 1.httpclient处理post提交xml格式数据请求 public static void post(String HOST, String PATH, String reqXml) { // 创建httpClient实例 CloseableHttpClien... 阅读全文
posted @ 2015-02-12 11:14 蚂蚁搬家H 阅读(524) 评论(0) 推荐(0) 编辑
摘要: 1.实现对java配置文件properties的读取、写入与更新操作package com.config;/** * 实现对Java配置文件Properties的读取、写入与更新操作 */ import java.io.BufferedInputStream; import java.i... 阅读全文
posted @ 2015-02-12 11:06 蚂蚁搬家H 阅读(304) 评论(0) 推荐(0) 编辑
摘要: 1.客户端向服务器传递参数中有的需要传递Json格式数据,现提供个HashMap转json格式数据方法 public static String hashjson(HashMap map) { String string = "[{"; for (Iterator... 阅读全文
posted @ 2015-02-12 11:02 蚂蚁搬家H 阅读(263) 评论(0) 推荐(0) 编辑