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)