JSONObject的parseArray方法作用。

时间:2018-09-05 16:16:53   收藏:0   阅读:2178

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

  

String dep_tree = JedisUtils.getInstance().get(CacheConstant.DEP_TREE, user.getId());
List<TreeNode> treeNodeList = JSONObject.parseArray(dep_tree, TreeNode.class);

原文:https://www.cnblogs.com/luxianyu-s/p/9592218.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!