2013年6月19日

使用json-lib进行Java和JSON之间的转换 [转]

摘要: [转]http://www.cnblogs.com/mailingfeng/archive/2012/01/18/2325707.html1. json-lib是一个java类库,提供将Java对象,包括beans, maps, collections, java arrays and XML等转换成JSON,或者反向转换的功能。2. json-lib 主页 :http://json-lib.sourceforge.net/3.执行环境 需要以下类库支持jakarta commons-lang 2.5jakarta commons-beanutils 1.8.0jakarta commons- 阅读全文

posted @ 2013-06-19 01:25 龙豆 阅读(579) 评论(0) 推荐(0) 编辑

Java SimpleDateFormat[转]

摘要: [补充] [转]http://stackoverflow.com/questions/2603638/why-cant-this-simpledateformat-parse-this-date-stringyou'll need to supply aLocale.ENGLISH, else it won't work properly in machines with a different default locale.1 SimpleDateFormat sdf = new SimpleDateFormat("MMM dd yyyy h:mm:ss:SSSa& 阅读全文

posted @ 2013-06-19 01:21 龙豆 阅读(4426) 评论(0) 推荐(0) 编辑

导航