888
Jinquan_Ou
2023-03-19 231a1f3f8787a8bb29395faa56ef57353426d917
ruoyi-admin/src/main/java/com/ruoyi/web/controller/common/CommonController.java
@@ -11,7 +11,6 @@
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.security.core.parameters.P;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import com.ruoyi.common.config.RuoYiConfig;
@@ -74,7 +73,7 @@
    }
    @GetMapping("/downLoadFile")
    public AjaxResult downLoadFile(@RequestParam("path") String path,HttpServletResponse response) throws Exception {
    public AjaxResult downLoadFile(@PathParam("path") String path, HttpServletResponse response) throws Exception {
        return downLoadFileService.downLoadFile(path,response);
    }