小生不才 1 년 전
부모
커밋
19506ee1aa
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      jp-console/jeeplus-plugins/jeeplus-file/src/main/java/com/jeeplus/file/controller/FileController.java

+ 2 - 1
jp-console/jeeplus-plugins/jeeplus-file/src/main/java/com/jeeplus/file/controller/FileController.java

@@ -14,6 +14,7 @@ import org.springframework.http.MediaType;
 import org.springframework.http.ResponseEntity;
 import org.springframework.util.StreamUtils;
 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;
@@ -55,7 +56,7 @@ public class FileController {
      * @throws IOException
      * @throws IllegalStateException
      */
-    @GetMapping("download")
+    @PostMapping("download")
     public void download(String uploadPath, String name, HttpServletRequest request, HttpServletResponse response) throws Exception {
         String url = accessoryRepository.getURL ( uploadPath, name ,request, response);
         if( StrUtil.isNotEmpty ( url ) ){