JSONObject的parseArray方法作用。时间:2023-03-09 23:21:32 该方法将字符串数据转换成集合对象。 String dep_tree = JedisUtils.getInstance().get(CacheConstant.DEP_TREE, user.getId()); List<TreeNode> treeNodeList = JSONObject.parseArray(dep_tree, TreeNode.class);