6
触发场景描述 使用OutputStream导出模板,采用自定义头的形式,导出的模板在同一列,而非同一行,使用的是2.0.5版本,后来更新至最新的版本也没用 触发Bug的代码
这里写代码
`DeviceExportDataDTO deviceExportDataDTO = remoteDeviceCommonService.loadTemplate("13162520604836

16");
String fileName = deviceExportDataDTO.getDeviceModelIdentification() + "设备导入模板";
this.setResponseHeader(response,fileName);
OutputStream os = response.getOutputStream();
try{
EasyExcel.write(os).head(deviceExportDataDTO.getTableTemplate()).sheet(fileName).doWrite(new LinkedList());
}catch (Exception e){
throw new RuntimeException("文件流操作失败");
}finally {
try{
os.close();
}catch (IOException e){
throw new RuntimeException("输出流关闭失败");
}
}
**提示的异常或者没有达到的效果**