JSONObject的parseArray方法作用。

  该方法将从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
© 2021 jiaocheng.bubufx.com  联系我们
ICP备案:鲁ICP备09046678号-3