JSONObject.fromObject()报java.lang.IllegalArgumentException异常

时间:2015-05-18 12:53:05   收藏:0   阅读:142

解决办法:

修改sql语句中的时间类型,将select语句中的时间类型字段全部用date_format(date, type)函数处理,如:

date_format(a.birthday,‘%Y-%m-%d‘) 
date_format(a.checkInTime,‘%Y-%m-%d %H:%m:%s‘)

备注:所用数据库为MySql。

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!