mica-boot BaseController 在 BaseController 中我们提供了一些简化的方法,包括 R 统一返回结构体封装和文件下载等。 这里主要介绍下文件下载。 文件下载(支持断点续传) 例子: @GetMapping("export")public ResponseEntity<ResourceRegion> export() throws IOException { File file = new File("/xxx/xxx.xlsx"); return download(file, "后台用户.xlsx");} 微信公众号 精彩内容每日推荐!!!