
POI 读取 Excel 文件 linux异常,window正常 50
11:15:30.400[qtp1018937824-21-/superdiamond/config/import]DEBUGo.s.b.f.s.DefaultLista...
11:15:30.400 [qtp1018937824-21 - /superdiamond/config/import] DEBUG o.s.b.f.s.DefaultListableBeanFactory - Returning cached instance of singleton bean 'configController'
java.lang.IllegalArgumentException: Your InputStream was neither an OLE2 stream, nor an OOXML stream
at org.apache.poi.ss.usermodel.WorkbookFactory.create(WorkbookFactory.java:75) 展开
java.lang.IllegalArgumentException: Your InputStream was neither an OLE2 stream, nor an OOXML stream
at org.apache.poi.ss.usermodel.WorkbookFactory.create(WorkbookFactory.java:75) 展开
1个回答
展开全部
你使用的POI版本多少?导出的excel格式是xls还是xlsx,最好把核心代码贴出来让大家分析下才能帮你找原因~~
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询