2023年6月22日发(作者:)
HutoolTreeUtil⼯具使⽤,3步转成树型结构maven pom
// 2.配置 TreeNodeConfig config = new TreeNodeConfig(); //ey("id");//默认为id可以不设置 //entIdKey("parentId");//默认为parentId可以不设置 //p(4);//最⼤递归深度 ghtKey("priority");//排序字段
// 3.转树,Tree<>⾥⾯泛型为id的类型 List
发布者:admin,转转请注明出处:http://www.yc00.com/web/1687386319a6217.html
评论列表(0条)