@Slf4j
public class MainTest {
public static void main(String[] args) throws IOException {
List<Tree<Long>> list = new ArrayList<>();
Tree<Long> t1 = new Tree<>();
t1.setId(1L);
t1.setParentId(0L);
t1.setName("01");
list.add(t1);
Tree<Long> t11 = new Tree<>();
t11.setId(11L);
t11.setParentId(1L);
t11.setName("11");
list.add(t11);
Tree<Long> t111 = new Tree<>();
t111.setId(111L);
t111.setParentId(11L);
t111.setName("t111");
list.add(t111);
Tree
03-30
7993
05-26
330
07-18
1114