该方法将字符串数据转换成集合对象。
String dep_tree = JedisUtils.getInstance().get(CacheConstant.DEP_TREE, user.getId());
List<TreeNode> treeNodeList = JSONObject.parseArray(dep_tree, TreeNode.class);
该方法将字符串数据转换成集合对象。
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