摘要: /** * 创建同名文件名称拼接(数字) * * @param path 需要创建的目录 * @return */ public static String recursionMkdirsFile(String path) { String newPath = path; for (int i = 阅读全文
posted @ 2023-01-05 15:18 Comfortable 阅读(27) 评论(0) 推荐(0) 编辑
摘要: mysql查询结果拼接树结构(树节点的移动) mysql查询结果拼接树结构(树节点的移动) 思路:单表内查询全部数据,在业务层内递归拼接树结构。 前端用的是element的Tree 树形控件: 树结构实体: @Data @AllArgsConstructor @NoArgsConstructor public class TreeSelect 阅读全文
posted @ 2022-11-22 16:37 Comfortable 阅读(415) 评论(0) 推荐(0) 编辑
摘要: PDF、视频格式缩略图获取(pdf2img) 获取pdf缩略图 导入依赖: <dependency> <groupId>org.apache.pdfbox</groupId> <artifactId>pdfbox</artifactId> <version>2.0.9</version> </dep 阅读全文
posted @ 2022-05-30 15:44 Comfortable 阅读(284) 评论(0) 推荐(0) 编辑
摘要: MinioAPI浅入及问题 MinioAPI浅入及问题 bucketExists(BucketExistsArgs args) boolean 判断桶是否存在 返回boolean boolean gxshuju = minioClient.bucketExists(BucketExistsArgs.builder() .buc 阅读全文
posted @ 2022-05-12 12:04 Comfortable 阅读(1244) 评论(0) 推荐(1) 编辑
摘要: @size (min=3, max=20,message="用户名长度只能在3-20之间") @size (min=6, max=20,message="密码长度只能在6-20之间") @pattern(regexp="[a-za-z0-9._%+-]+@[a-za-z0-9.-]+\.[a-za- 阅读全文
posted @ 2022-04-14 15:39 Comfortable 阅读(46) 评论(0) 推荐(0) 编辑
摘要: hutool文档地址:https://www.hutool.cn/docs/#/ 导入依赖 <dependency> <groupId>cn.hutool</groupId> <artifactId>hutool-all</artifactId> <version>5.8.0.M2</version 阅读全文
posted @ 2022-04-12 16:09 Comfortable 阅读(399) 评论(0) 推荐(0) 编辑