
json
焱童鞋
勿在浮沙筑高台
展开
-
morphlines本地启动测试调试自定义Commands工具类
public static void main(String[] args) { String configJson = ""; StringBuilder stringBuilder = new StringBuilder(); stringBuilder.append("morphlines:[\n" + " {\n" + " id : dxytest\n" + ..原创 2022-03-29 10:45:55 · 254 阅读 · 0 评论 -
docx文件转freemaker 工具方法
1.新建 word文件,调整好格式 如图: 另存为xml文件 修改扩展名字为ftl就可以了, 把模版数据填充到模版中: public static String jsonToword(JSONObject jsonObject) { String wordPath = null; try { JSONObject agreement = jsonObject.getJSONObject("agreement"); String tempFil.原创 2021-04-12 18:03:42 · 619 阅读 · 0 评论 -
记一道笔试题目,后台实现Java将Connection<T>集合组装成树(Tree)树结构组装
题目如下: 电商系统的商品分类Category一般分多级, 比如运动户外->运动服饰->运动内衣,假设 Category.java如下: class Category { private Long id; private String name; //上级分类id...原创 2019-06-27 08:56:34 · 691 阅读 · 0 评论