BufferedReader br = new BufferedReader(new InputStreamReader(request.getInputStream()));
String line = null;
StringBuilder sb = new StringBuilder();
while ((line = br.readLine()) != null) {
sb.append(line);
}
br.close();
//sb为微信返回的xml微信返回的所有信息
String notityXml = sb.toString();
String resXml = "";
log.info("接收到的报文" + notityXml);
打印结果如下:接收到的报文1
这是咋回事呢?
我也碰到同样的问题