日期:2014-05-17 浏览次数:20777 次
String fileName = System.currentTimeMillis() + new Random().nextInt() + "." + last; File savedFile = new File(rootPath + filepath + fileName); String path = request.getContextPath(); String basePath = request.getScheme()+"://" + request.getServerName() + ":" + request.getServerPort() + path + "/" + savePath + fileName; fileItem.write(savedFile);//