67,515
社区成员
发帖
与我相关
我的任务
分享
String realPath=ServletActionContext.getRequest().getRealPath("/upload");
System.out.println(realPath);
InputStream in=request.getSession().getServletContext().getResourceAsStream("/WEB-INF/classes/xxx.properties");
Properties p=new Properties();
p.load(in);
String mainPath = p.getProperty("filedir");