小生不才 1 жил өмнө
parent
commit
19506ee1aa

+ 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 ) ){