BufferedReader br = new BufferedReader(new InputStreamReader((ServletInputStream) request.getInputStream(), "utf-8"));
StringBuffer buffer = new StringBuffer("");
String temp;
while ((temp = br.readLine()) != null) {
buffer.append(temp);
}
br.close();
String body = buffer.toString();
这样拿到的信息是请求端发来的全部请求信息,你需要对接收到的信息进行处理。