摘要: 使用gson的tojson和fromjson实现对象和json的转换 Gson gson = new Gson(); // Or use new GsonBuilder().create(); MyType target = new MyType(); String json = gson.toJs 阅读全文
posted @ 2016-05-20 19:14 guodaxia 阅读(210) 评论(0) 推荐(0) 编辑
摘要: package com.dom4j;import java.io.File;import java.io.FileWriter;import java.io.IOException;import java.lang.reflect.Field;import java.lang.reflect.Inv 阅读全文
posted @ 2016-05-20 15:42 guodaxia 阅读(1211) 评论(0) 推荐(0) 编辑
摘要: package test; public class Car { private int carMoney; //汽车租金 private String carName; //汽车名字 private int carNumb; //汽车序列号 private int carryNum; //载货量 ... 阅读全文
posted @ 2016-05-20 10:37 guodaxia 阅读(6025) 评论(0) 推荐(0) 编辑