Skip to content

java中将有子父级关系的list集合转出树形结构

Notifications You must be signed in to change notification settings

JiangGK/fay-tree4j

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fay-tree4j

java中将有子父级关系的list集合转出树形结构

将有父子关系的实体类实现IFayTreeNode接口,然后调用FayTreeUtil的getTreeInJsonObject方法,参数为该实体的list集合,返回具有树形结构的JSON对象,格式为
{“treeObject”:{...},"children":[{...}]}

This is an example.

About

java中将有子父级关系的list集合转出树形结构

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%