|
@@ -198,6 +198,7 @@ public class CommonController extends BaseController {
|
|
|
response.setContentType(MediaType.APPLICATION_OCTET_STREAM_VALUE);
|
|
response.setContentType(MediaType.APPLICATION_OCTET_STREAM_VALUE);
|
|
|
FileUtils.setAttachmentResponseHeader(response, downloadName);
|
|
FileUtils.setAttachmentResponseHeader(response, downloadName);
|
|
|
FileUtils.writeBytes(downloadPath, response.getOutputStream());
|
|
FileUtils.writeBytes(downloadPath, response.getOutputStream());
|
|
|
|
|
+
|
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
|
log.error("下载文件失败", e);
|
|
log.error("下载文件失败", e);
|
|
|
}
|
|
}
|