年轻小甜瓜

文章
5
资源
0
加入时间
3年1月12天

将文件上传到tomcat

//deviceimages随便取,在tomcat会新建String realpath = ServletActionContext.getServletContext().getRealPath("/deviceimages");       System.out.println("realpath: "+realpath);//devicepic是input file中的name