|
@@ -112,8 +112,8 @@ public class UserProfileServiceImpl extends ServiceImpl<UserProfileMapper, UserP
|
|
|
return this.removeByIds(ids);
|
|
return this.removeByIds(ids);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public static void main(String[] args) {
|
|
|
|
|
-
|
|
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public String addWord(UserProfileAddBo bo) {
|
|
|
//默认配置就够用了
|
|
//默认配置就够用了
|
|
|
TemplateEngine engine = TemplateUtil.createEngine(new TemplateConfig());
|
|
TemplateEngine engine = TemplateUtil.createEngine(new TemplateConfig());
|
|
|
//资源,根据实现不同,此资源可以是模板本身,也可以是模板的相对路径
|
|
//资源,根据实现不同,此资源可以是模板本身,也可以是模板的相对路径
|
|
@@ -123,7 +123,9 @@ public class UserProfileServiceImpl extends ServiceImpl<UserProfileMapper, UserP
|
|
|
bindingMap.put("name", "zhou");
|
|
bindingMap.put("name", "zhou");
|
|
|
bindingMap.put("s", "niu");
|
|
bindingMap.put("s", "niu");
|
|
|
//最终渲染出来的样子
|
|
//最终渲染出来的样子
|
|
|
- template.render(bindingMap,new File("D:\\Download/20211214.docx"));
|
|
|
|
|
|
|
+ String render = template.render(bindingMap);
|
|
|
|
|
+ System.out.println(render);
|
|
|
|
|
+ return "11";
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
}
|
|
}
|