摘要:
spring mvc 批量上传+文件上传简单3步走。搞定!上传文件成功后:1 上传文件核心方法public static String saveWebImgFile(MultipartFile imgFile){ String webFilePath = ""; if(imgFile.getSize() > 0 && isImage(imgFile.getContentType())){ FileOutputStream fos = null; try { byte[] b = imgFile.getBytes(); /* 构造文件路径 */ Str. 阅读全文
浙公网安备 33010602011771号