记一次SpringBoot ResponseEntity 下载乱码,文件损坏问题
今天在做下载时采用
public static ResponseEntity<byte[]> buildResponseEntity(File file, String fileName) throws IOException {
byte[] body = FileUtils.readFileToByteArray(file);
HttpHeaders hea...
原创
2019-04-28 12:45:11 ·
3969 阅读 ·
1 评论