Jinquan_Ou
2023-03-19 6e7c7a2ceaf1d8d79b8b53e5e235f7827d93d323
ruoyi-admin/src/main/java/com/ruoyi/web/controller/common/CommonController.java
@@ -6,6 +6,7 @@
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;
@@ -73,8 +74,8 @@
        }
    }
    @PostMapping("/downLoadFile")
    public AjaxResult downLoadFile(@RequestBody String path,HttpServletResponse response) throws Exception {
    @GetMapping("/downLoadFile")
    public AjaxResult downLoadFile(@PathParam("path") String path, HttpServletResponse response) throws Exception {
        return downLoadFileService.downLoadFile(path,response);
    }