public String readJSONString(HttpServletRequest request) {
StringBuffer json = new StringBuffer();
String line = null;
try {
//从request对象中得到提交的数据
BufferedReader reader = request.getReader();
while ((line = reader.readLine()) != null) {
json.append(line);
}
logger.debug("后台传递字符串为:"+json);
} catch (Exception e) {
logger.error("RequestDeal readJSONString", e);
}
return json.toString();
}