public String readPostData(HttpServletRequest request) { StringBuilder result = new StringBuilder(); try { String line; BufferedReader reader = request.getReader(); while (null != (line = reader.readLine())) { result.append(line); } } catch (Exception e) { Log.info(e.getMessage()); } return result.toString(); }
时间: 2024-10-03 23:53:23