问题1:Unable to recognize OLE stream 格式的问题要可能是因为给的数据是2010年的数据表后缀为.xlsx,要先转化成2003版的后缀为.xls 问题2: Warning: Property storage name for 5 is empty - setting to Root Entry 可能是jxl.jar 不支持Excel 5.0 for Mac,在Mac下导入会出现这个问题. //从Excel中读取数据rowNum行 public static doub
之前有写过一点关于java实现写Excel文件的方法,但是现在看来,那种方式用起来不是太舒服,还很麻烦.所以最近又参考其他,就写了一个新版,用起来不要太爽. 代码不需要解释,惯例直接贴下来: public class ExcelExport implements Closeable { private static final Logger LOGGER = LoggerFactory.getLogger(ExcelExport.class); public static final Strin
背景:最近写一个通过excel批量导入数据的功能,里面含有时间,但是java读取之后把时间转为了距离1990年1月1号的天数,比如excel中时间为2018/9/16 18:30,java读取之后变成43359.77083就会有问题 出现的问题: SimpleDateFormat startFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); Date date = startFormat.parse(tmpMap.get(&quo