JSONObject的parseArray方法作用。

时间:2018-09-05 17:44:23   收藏:0   阅读:3700

  该方法将从Redis获取的字符串数据转换成对象数据。

  

String dep_tree = JedisUtils.getInstance().get(CacheConstant.DEP_TREE, user.getId());
List<TreeNode> treeNodeList = JSONObject.parseArray(dep_tree, TreeNode.class);
评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!