private String getRequestBody(HttpServletRequest request) {
		try {
			InputStream v_inputstream = request.getInputStream();
			ByteArrayOutputStream baos = new ByteArrayOutputStream();
			int x = 0;
			while ((x = v_inputstream.read()) != -1) {
				baos.write(x);
			}
			baos.flush();
			return new String(baos.toByteArray(), UTF_8);
		} catch (Exception e) {
			logger.error(e.getMessage(), e);
		}
		return "";
	}

  

相关文章:

  • 2021-11-30
  • 2021-06-16
  • 2022-12-23
  • 2021-11-15
  • 2022-12-23
  • 2021-08-09
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-09-16
  • 2021-07-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案