java读取word模版渲染报错Compile template failed。(poi-tl currently only supperts .docx fomat)
报错 poi-tl currently only supperts .docx fomat。java读取word模版渲染报错:Compile template failed。poi tl目前只支持.docx格式。
·
poi-tl渲染word报错:Compile template failed
XWPFTemplate.compile(inputStream,config)
打断点追进去发现,报错 poi-tl currently only supperts .docx fomat
poi tl目前只支持.docx格式
如果是docx文件重新将word文件保存到本地,然后另存为docx文件,把新保存的文件重新放到idea上就可以了。
更多推荐
所有评论(0)