11 2017 档案

摘要:谷歌的Gson.jar: //list转换为json Gson gson = new Gson(); List<Person> persons = new ArrayList<Person>(); String str = gson.toJson(persons); //json转换为list Gs 阅读全文
posted @ 2017-11-17 09:11 samcheng 阅读(7529) 评论(0) 推荐(0) 编辑
摘要:public class Test { public long stringToLongDate(String str) throws ParseException { SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss" 阅读全文
posted @ 2017-11-14 19:44 samcheng 阅读(3414) 评论(0) 推荐(0) 编辑