springboot+vue+axios实现本地文件(txt excel)下载
后端
说明:我是读取本地文件,从前端传过来文件名,然后通过后端把文件传给前端,前端页面点击“下载”按钮,然后实现下载功能。
@GetMapping("/download/{fileName}")
public void download(@PathVariable(“fileName”) String fileName,
HttpServletRequest request, HttpServle...
原创
2019-07-15 22:32:57 ·
2197 阅读 ·
13 评论