该楼层疑似违规已被系统折叠隐藏此楼查看此楼
POI 3.7版本 在本地测试导出excel 都没有问题, 放到服务器上就出现下面的问题,
导出的excel文件打不开
求助大神~~~~
下面是我的代码
private boolean exportToExcel(List ds1ResultList) {
String filePath="/opt/scheduler/tomcat-report/webapps/scheduler/accessories/report/";
XMLProperties prop1 = XmlManage.getFile("/com/boco/eoms/report/config/report-info.xml");
String column = prop1.getProperty("kjh6.columnName");
String[] columns = column.split(",");
if(columns.length!=7){
return false;
}
String columnCnName;
String columnEnName;
XSSFWorkbook workbook = new XSSFWorkbook();
XSSFSheet sheet = workbook.cr