在poi3.13生成word文档的主体后,写入本地文件后,写上spire.doc.free2.7.3的生成目录的代码,通过读取已生成的word,加上目录后,然后再生成新的word,也可以直接覆盖生成
//创建文档对象
XWPFDocument document = new XWPFDocument();
String fileName = "模板生成.docx";
String path = "C:\\Resources\\";
String uuid = UUID.randomUUID().toString().substring(6);
File folder = new File(path + uuid);
if (!folder