解决办法:

       需要在toBean之前添加配置

String[] dateFormats = new String[] {"yyyy-MM-dd HH:mm:ss"};
JSONUtils.getMorpherRegistry().registerMorpher(new DateMorpher(dateFormats));
Map<String, Class> classMap = new HashMap<String, Class>();
MemberPlayLogs memberPlayLogs
= (MemberPlayLogs) JSONObject.toBean(jsonObject, MemberPlayLogs.class,classMap);

 

 源文:http://blog.csdn.net/rnzuozuo/article/details/21992137

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-06
  • 2022-12-23
  • 2021-05-29
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-30
  • 2022-12-23
  • 2022-12-23
  • 2021-07-25
相关资源
相似解决方案