freemarker 使用word模版导出word

创建一个word.doc,如下图: 另存为XML格式,如下图: 将word.xml放入项目中,重命名为word.ftl,(list循环数据格式需要修正) Configuration cfg=new Configuration(); cfg.setClassForTemplateLoading(FreeMarkerUtil.class,"/template"); cfg.setDefaultEnco
相关文章
相关标签/搜索