如何在基于Servlet的Web应用程序中临时保存生成的文件
/WEB-INF/pages/
.
File folder = new File("src/main/webapp/WEB-INF/pages/");StreamResult result = new StreamResult(new File(folder, fileName));
(C:\Users\userName\Desktop\Source\MyProject\src\main\webapp\WEB-INF\pages\myFile.xml).
TransformerException:java.io.FileNotFoundException C:\project\eclipse-jee-luna-R-win32-x86_64\eclipse\src\main\webapp\WEB INF\Pages\myFile.xml
getServletContext().getRealPath()
null
波斯汪
相关分类