private String initJSONBody(HttpServletRequest request) { StringBuilder sb = null; try { BufferedReader br = new BufferedReader(new InputStreamReader(request.getInputStream(), "UTF-8")); // returnStr = br.readLine().toString(); String line = null; sb = new StringBuilder(); while ((line = br.readLine()) != null) { sb.append(line); sb.append("\r\n"); } br.close(); logger.error("error-body:" + sb.toString()); } catch (Exception e) { e.printStackTrace(); } return sb.toString(); }