public static WxMpXMLInMemoryConfigStorage fromXml(InputStream is) throws JAXBException {
Unmarshaller um = JAXBContext.newInstance(WxMpXMLInMemoryConfigStorage.class).createUnmarshaller();
InputSource inputSource = new InputSource(is);
inputSource.setEncoding("utf-8");
return (WxMpXMLInMemoryConfigStorage) um.unmarshal(inputSource);
}
中 return 一行提示:
XML parser configured in WxMpXMLInMemoryConfigStorage.java:34 does not
prevent nor limit external entities resolution. This can expose the parser to an XML
External Entities attack.