12 2021 档案
摘要:docx属于zip的一种,这里只需要操作word/document.xml中的数据1、新建detection.docx文件,用winrar打开文件,取出word/document.xml,进行freeMarker语句替换。 替换xml文件w:body中传入值为freeMarker语句,更改为dete
阅读全文
摘要:
FreeMarker是一款模板引擎:基于模板和要改变的数据,生成输出文本(Word、Html)的通用工具。它是一款简单的、专用语言,在模板中,我们只需专注如何显示数据,而在模板外专注于展示的数据。 1、maven包导入 <dependency> <groupId>org.freemarker</gr
阅读全文
