1.取xml类型数据 或者 无参数名的参数
BufferedReader bufferedReader = null;
//取出来的参数
StringBuffer returnXml = new StringBuffer();
try {
String line = null;
bufferedReader = new BufferedReader(new InputStreamReader(request.getInputStream()));
while ((line = bufferedReader.readLine()) != null) {
returnXml.append(line);
}
logger.info("{} request = {}, returnXml = {} start.", method, request.toString(), returnXml);
} catch (Exception e) {
e.printStackTrace();
}
2.获取普通参数 (有参数名的参数)
//SignMsg 参数名
String strSignMsg = request.getParameter("SignMsg");