String sPath = request.getRealPath("/") ; //来得到WebServer的根目录的绝对路径//然后:String pathname=sPath+"upload";File file=new File(pathname);file.mkdir();