BufferedReader bf = new BufferedReader(new InputStreamReader((ServletInputStream) request.getInputStream(), "utf-8"));
StringBuffer sb = new StringBuffer();
String temp = "";
while ((temp=bf.readLine())!= null){
sb.append(temp);
}
bf.close();
JSONObject json = new JSONObject.parseObject(sb.toString());
System.out.println(json);
标签:传参,bf,Java,temp,StringBuffer,HttpServleRequest,sb,new From: https://www.cnblogs.com/htcm8wangyu/p/17648108.html