SpringBoot生成数据并下载
@RequestMapping(value = "/download", method = RequestMethod.GET) @ResponseBody public Object download(HttpServletRequest request, HttpServletResponse response, @RequestParam(value = "pid") Long pid) throws IOException { OutputStream os = ..