将数据结果转换成xml的工具类。 1.结果数据格式 Map map = new HashMap(); List List = new ArrayList();// 创建一个容器 List.add(unitRecord);//unitRecord是一个对象 map.put("SBR_PORT_0001", List);//SBR_PORT_0001是xml模板中的节点 2.XmlPacketUtil.format(templatePath, map, new File(filePath), "U
NULL
博文链接:https://zzc1684.iteye.com/blog/2210510return map
直接访问地址:
P Alelocalhost: 8888/springMVCDemo/employee/ xmlorJson
圆访问最多 gEtting Started
t list": I id: 1, name": format", age": 22, dept: id": 1, name": research and develop F
我们看到,短短几行配置。使用 Res