POI XSSF与HSSF区别

java操作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 a different part of POI to process this data (eg XSSF instead of HSSF)

与Excel的版本有关,2003版Excel的实现是OLE,2007版及之后的Excel实质是XML。POI XSSF与HSSF区别可参考下面的连接。

https://blog.csdn.net/u012580998/article/details/70859730

原文地址:https://www.cnblogs.com/alphajuns/p/11379841.html