摘要: 1: 演示效果图 2: IDEA 右侧 3:使用方式 4:返回结果 阅读全文
posted @ 2023-01-17 17:34 wode林夕 阅读(302) 评论(0) 推荐(0) 编辑
摘要: 区别:与new HashMap() 与 new ArrayList() 没啥区别,主要目的是为了简化,不需要你手动写泛型。 1:添加依赖: <!-- google java lib --> <dependency> <groupId>com.google.guava</groupId> <artif 阅读全文
posted @ 2023-01-17 17:10 wode林夕 阅读(27) 评论(0) 推荐(0) 编辑
摘要: 1:实体类 @Data @ApiModel(value = "部门树 VO封装", description = "VO封装") public class DeptTreeVO { /** * 部门编号 */ @ApiModelProperty(value = "部门编号", dataType = " 阅读全文
posted @ 2023-01-17 16:40 wode林夕 阅读(23) 评论(0) 推荐(0) 编辑
摘要: 接下来模仿现实业务场景中,实现查询数据库得到数据,最后使用TreeUtil 处理数据,返回结果呈树形结构。 1:引入 Hutool 依赖 <dependency> <groupId>cn.hutool</groupId> <artifactId>hutool-all</artifactId> <ve 阅读全文
posted @ 2023-01-17 14:48 wode林夕 阅读(156) 评论(0) 推荐(0) 编辑