Springboot圖片上傳功能實現 文件上傳

一、配置上傳路徑 web: upload-path: E:/img/ #自定義文件上傳路徑 multipart: maxRequestSize: 2Mb #設置全部文件最大內存 maxFileSize: 2Mb #設置單個文件最大內存 二、springboot配置類中添加配置 @Value("${web.upload-path}") private String uploadFilt
相關文章
相關標籤/搜索