Jinquan_Ou
2023-03-19 8ba9ddaeb71dcdf263f628d6ea2c59fd9b303ad7
ruoyi-admin/src/main/java/com/ruoyi/web/controller/common/CommonController.java
@@ -6,13 +6,11 @@
import javax.servlet.http.HttpServletResponse;
import javax.websocket.server.PathParam;
import com.ruoyi.domain.PathParams;
import com.ruoyi.service.DownLoadFileService;
import org.slf4j.Logger;
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;
@@ -75,8 +73,8 @@
    }
    @GetMapping("/downLoadFile")
    public AjaxResult downLoadFile(@PathParam("path") String path, HttpServletResponse response) throws Exception {
        return downLoadFileService.downLoadFile(path,response);
    public void downLoadFile(@PathParam("path") String path, HttpServletResponse response) throws Exception {
        downLoadFileService.downLoadFile(path,response);
    }