소스 검색

上传资源打印日志

dengsixing 2 년 전
부모
커밋
b820bc9e1f
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/main/java/com/fdkankan/contro/controller/ApiFileController.java

+ 1 - 0
src/main/java/com/fdkankan/contro/controller/ApiFileController.java

@@ -31,6 +31,7 @@ public class ApiFileController {
      */
     @RequestMapping(value = "upload", method = RequestMethod.POST)
     public ResultData uploadFile(String key, @RequestParam("file") MultipartFile file) throws Exception {
+        log.info("key:{}, fileName:{}", key, file.getOriginalFilename());
         if(ObjectUtils.isEmpty(key) || ObjectUtils.isEmpty(file)){
             log.error("参数有误!");
             throw new BusinessException(ErrorCode.PARAM_REQUIRED);