|
@@ -4,16 +4,17 @@ import lombok.extern.slf4j.Slf4j;
|
|
|
import org.jeecg.common.api.vo.Result;
|
|
|
import org.jeecg.common.constant.CommonConstant;
|
|
|
import org.jeecg.common.constant.SymbolConstant;
|
|
|
-import org.jeecg.common.constant.enums.FileTypeEnum;
|
|
|
import org.jeecg.common.exception.JeecgBootException;
|
|
|
import org.jeecg.common.util.CommonUtils;
|
|
|
import org.jeecg.common.util.filter.SsrfFileTypeFilter;
|
|
|
import org.jeecg.common.util.oConvertUtils;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
-import org.springframework.context.annotation.Lazy;
|
|
|
import org.springframework.util.AntPathMatcher;
|
|
|
import org.springframework.util.FileCopyUtils;
|
|
|
-import org.springframework.web.bind.annotation.*;
|
|
|
+import org.springframework.web.bind.annotation.GetMapping;
|
|
|
+import org.springframework.web.bind.annotation.PostMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
import org.springframework.web.multipart.MultipartHttpServletRequest;
|
|
|
import org.springframework.web.servlet.HandlerMapping;
|
|
@@ -79,7 +80,7 @@ public class CommonController {
|
|
|
if(oConvertUtils.isEmpty(bizPath)){
|
|
|
if(CommonConstant.UPLOAD_TYPE_OSS.equals(uploadType)){
|
|
|
//未指定目录,则用阿里云默认目录 upload
|
|
|
- bizPath = "upload";
|
|
|
+ bizPath = "opt/upFiles";
|
|
|
//result.setMessage("使用阿里云文件上传时,必须添加目录!");
|
|
|
//result.setSuccess(false);
|
|
|
//return result;
|