首次写博客,希望能坚持下去,一点一滴的积累,内容不多也不深,但愿我的分享,能帮助和我一样的新人们解决问题 最近给项目中添加了一个导入excel表格的功能,然而在功能开发结束后测试,发现报错. 报错信息如下: The supplied data appears to be in the Office 2007+ XML. You are calling the part of POI that deals with OLE2 Office Documents. You need to call
1.工具类public class InExcelTool { //根据指定位置单独读取一个 public static String getContent(String file, int page, int i, int j){ String s = null; try { //解析 org.apache.poi.ss.usermodel.Workbook workbook = null; NumberFormat nf = NumberFormat.getInstance(); //文件后