penruins

导航

2022年1月20日 #

algorithm

摘要: tree 多叉树结合JavaScript树形控件实现无限级树形菜单(一种构建多级有序树形结构JSON(或XML)数据源的方法) 将数据转换成树型层级的Json格式的String 灵魂一问:Java中对树只有TreeMap和TreeSet的实现。为什么没有现成直接的树的实现类? Java 递归实现树形 阅读全文

posted @ 2022-01-20 20:27 penruins 阅读(62) 评论(0) 推荐(0) 编辑

website

摘要: tools 图片转BASE64 阅读全文

posted @ 2022-01-20 20:25 penruins 阅读(8) 评论(0) 推荐(0) 编辑

Java

摘要: 浅析VO、DTO、DO、PO的概念、区别和用处 IO tools public static String is2String(InputStream is) throws IOException { BufferedReader br = new BufferedReader(new InputS 阅读全文

posted @ 2022-01-20 14:27 penruins 阅读(77) 评论(0) 推荐(0) 编辑

Spring

摘要: 异常处理 异常类 /** * 不能用 @Data 注解,因为它没有继承自 Object */ public class CustomException extends RuntimeException { private Long code; private String msg; public C 阅读全文

posted @ 2022-01-20 14:23 penruins 阅读(24) 评论(0) 推荐(0) 编辑