本文主要是介绍POI 操作Excel 异常org.apache.poi.openxml4j.exceptions.invalidformatexception: package should contain a c,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
POI 操作Excel 出现如下异常
org.apache.poi.openxml4j.exceptions.invalidformatexception: package should contain a content type part
代码如下
public boolean parseToExcel(String oldFileName,String newFileName){
Map<Object,Object> map = new HashMap<Object,Object>();
map.put(0,"FYMC");
map.put(1,"GXFYS");
map.put(2,"LS_YSJGYS");
map.put(4,"LS_ZDHJAJS");
map.put(5,"LS_CGRKAJS");
map.put(6,"LS_RKSBAJS");
map.put(7,"LS_XSAJS");
map.put(8,"LS_YJAJS");
map.put(9,"LS_FYS");
map.put(
Map<Object,Object> map = new HashMap<Object,Object>();
map.put(0,"FYMC");
map.put(1,"GXFYS");
map.put(2,"LS_YSJGYS");
map.put(4,"LS_ZDHJAJS");
map.put(5,"LS_CGRKAJS");
map.put(6,"LS_RKSBAJS");
map.put(7,"LS_XSAJS");
map.put(8,"LS_YJAJS");
map.put(9,"LS_FYS");
map.put(
这篇关于POI 操作Excel 异常org.apache.poi.openxml4j.exceptions.invalidformatexception: package should contain a c的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!