BufferedReader br = new BufferedReader(new InputStreamReader((ServletInputStream)request.getInputStream(),"UTF-8"));
String line = null;
StringBuilder sb = new StringBuilder();
while((line = br.readLine())!=null){
sb.append(line);
}
json = sb.toString();
Struts 2 接收post请求
最新推荐文章于 2021-02-13 13:01:52 发布