request.getParamter(String name)方法不能再使用了
需要使用request.getInputStream()获取输入流对象然后在进行读取数据
解析数据
ServletInputStream inputStream = request.getInputStream() ; byte[] bytes = new byte[1024] ; int len = 0 ; while((len = inputStream.read(bytes)) != -1) { System.out.print(new String(bytes , 0 , len)); }
时间: 2024-12-21 12:50:20