标签:
//从前台通过name值获取file MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest)request; MultipartFile multipartFile = multipartRequest.getFile("file"); //multipartFile转换成file CommonsMultipartFile cf= (CommonsMultipartFile)multipartFile; DiskFileItem fi = (DiskFileItem)cf.getFileItem(); File f = fi.getStoreLocation();
标签:
原文地址:http://www.cnblogs.com/zrui-xyu/p/4995512.html