增加代码说明

This commit is contained in:
luoxiang
2018-12-19 21:59:45 +08:00
parent d5f03cbfff
commit 47d65ac6b3
3 changed files with 1118 additions and 2 deletions

View File

@ -69,6 +69,9 @@ public class FileController {
}
/***
* 上传用于下载的文件
*/
@PostMapping("upFileForDownload")
public String upFileForDownload(MultipartFile file, HttpSession session, Model model) throws UnsupportedEncodingException {
String path = FileUtil.saveFile(file, session.getServletContext().getRealPath("/image"));