/**
* Map kv拼接
* key1=value1&key2=value2
*
* @param map
* @return
*/
public static String getString(Map<String, String> map) {
String param = "";
Iterator<Map.Entry<String, String>> iterator = map.entrySet().iterator();
while (iterator.hasNext()) {
Map.Entry<String, String> entry = iterator.next();
if (!param.equals("")) {
param = param.concat("&");
}
param = param.concat(entry.getKey())
.concat("=")
.concat(entry.getValue());
}
return param;
}