SpringBoot实现利用浏览器下载文件
@RestController
@RequestMapping("file")
@Api(tags = "下载文件")
public class downloadFile {
@GetMapping("/downloadFile")
public ResponseEntity<FileSystemResource> downloadFile(String path) {
return export(new
@RestController
@RequestMapping("file")
@Api(tags = "下载文件")
public class downloadFile {
@GetMapping("/downloadFile")
public ResponseEntity<FileSystemResource> downloadFile(String path) {
return export(new