java的如何获取请求中的XML数据包
解决方法:
InputStream inputStream;
StringBuffer sb = new StringBuffer();
inputStream = request.getInputStream();
String s;
BufferedReader in = new BufferedReader(new InputStreamReader(inputStream, "UTF-8"));
while ((s = in.readLine()) != null) {
sb.append(s);
}
in.close();
inputStream.close();
XML装map请参考:http://www.yayihouse.com/yayishuwu/chapter/1453
本文链接:http://yayihouse.com/yayishuwu/chapter/1512