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"); 

 

  

版权声明:本文为ytfcz原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://www.cnblogs.com/ytfcz/p/4686591.html