[quote=引用 3 楼 boluoy 的回复:] 上面两个方法都不行,最好是改了后端代码 InputStreamReader reader=new InputStreamReader(request.getInputStream(),"UTF-8"); char [] buff=new char[1024]; int length=0; String x=null; while((length=reader.read(buff))!=-1){ x=new String(buff,0,length); } System.out.println(x); JSONObject json = JSONObject.fromObject(x); System.out.println("pagesize"+json.getString("pageSize")); System.out.println("pageno"+json.getString("pageNo"));
上面两个方法都不行,最好是改了后端代码 InputStreamReader reader=new InputStreamReader(request.getInputStream(),"UTF-8"); char [] buff=new char[1024]; int length=0; String x=null; while((length=reader.read(buff))!=-1){ x=new String(buff,0,length); } System.out.println(x); JSONObject json = JSONObject.fromObject(x); System.out.println("pagesize"+json.getString("pageSize")); System.out.println("pageno"+json.getString("pageNo"));
52,797
社区成员
25,305
社区内容
加载中
试试用AI创作助手写篇文章吧