1. 从HttpServletRequest中读取请求参数
InputStream inStream = request.getInputStream(); ByteArrayOutputStream outSteam = new ByteArrayOutputStream(); byte[] buffer = new byte[1024]; int len = 0; while ((len = inStream.read(buffer)) != -1) { outSteam.write(buffer, 0, len); } System.out.println("~~~~~~~~~~~~~~~~付款成功~~~~~~~~~"); outSteam.close(); inStream.close(); String result = new String(outSteam.toByteArray(),"utf-8");