code: public static String parseRequst(HttpServletRequest request) {
          String body = "";
          try {
              ServletInputStream inputStream = request.getInputStream();
              BufferedReader br = new BufferedReader(new InputStreamReader(inputStream));
              while (true) {
                  String info = br.readLine();
                  if (info == null) {
                      break;
                  }
                  if (body == null || "".equals(body)) {
                      body = info;
                  } else {
                      body += info;
                  }
              }
          } catch (UnsupportedEncodingException e) {
              e.printStackTrace();
          } catch (IOException e) {
              e.printStackTrace();
          }
          return body;
      }
docs: request转字符串
  @param request
  @return