具体:Caused by: org.apache.poi.openxml4j.exceptions.OLE2NotOfficeXmlFileException: The supplied data appears to be in the OLE2 Format. You are calling the part of POI that deals with OOXML (Office Open XML) Documents. You need to call a different part of POI to process this data (eg HSSF instead of XSSF)
用wps编辑好模板直接拖进idea后将文件后缀 .wps 改为 .docx,导致问题出现。
点击文件名也可以跳转,并正常打开。
重新将文件另存为.docx既可。