String path = parentPath +File.separator + newFileName;File newFile = new File(path);// 把文件读入InputStream stream = spFileName.getInputStream();
org.apache.commons.io.FileUtils.copyInputStreamToFile(stream, newFile);