![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
freemarker
大新哥_w
记录自己学到的知识,跟同行进行探讨
展开
-
2020-12-03
freemarker根据模板生成html,并在显示在页面富文本(tinymce)框中,编辑后,下载为pdf文件1、新建word文档,编辑内容,动态数据用占位符替换。2、文件另存为.html文件,并放到项目中,改后缀为.ftl。文件中要去掉前面<xml></xml>中的内容3、生成html方法String content = new FreeMarkerModalUtil().createModalHtml(map,"agreementHtmlSim.ftl原创 2020-12-03 15:47:30 · 138 阅读 · 0 评论 -
2020-12-03
Freemarker根据模板生成word文档,并在页面下载1、新建word文档,动态的数据使用占位符2、编辑好之后,另存为.xml文件。放入Spring项目中,改后缀名为xxx.ftl。3.freemarker生成doc模板方法 public ResponseEntity createModaldoc(Map<String, Object> dataMap, String templateName, String fileName) throws Unsuppo原创 2020-12-03 11:47:56 · 181 阅读 · 0 评论