| | |
| | | } |
| | | } |
| | | |
| | | @GetMapping("/downLoadFile") |
| | | public AjaxResult downLoadFile(@RequestParam("path") String path,HttpServletResponse response) throws Exception { |
| | | @PostMapping("/downLoadFile") |
| | | public AjaxResult downLoadFile(@RequestBody String path,HttpServletResponse response) throws Exception { |
| | | return downLoadFileService.downLoadFile(path,response); |
| | | } |
| | | |
| | |
| | | while(bis.read(buffer) != -1){ |
| | | os.write(buffer); |
| | | } |
| | | return AjaxResult.success("操作成功"); |
| | | } |
| | | }catch (Exception e) { |
| | | e.printStackTrace(); |
| | |
| | | e.printStackTrace(); |
| | | } |
| | | } |
| | | return AjaxResult.success("操作成功"); |
| | | return AjaxResult.error("操作失败"); |
| | | } |
| | | } |