摘要: /** * 将对象转为流程XML */ public static String objtoxml(Object obj) { // 创建输出流 StringWriter sw = new StringWriter(); try { // 利用jdk中自带的转换类实现 JAXBContext context = JAXBContext.newInstance(obj.getClass()); Ma 阅读全文
posted @ 2019-10-28 11:01 石洋 阅读(417) 评论(0) 推荐(0) 编辑