会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
小样儿i
博客园
首页
新随笔
联系
订阅
管理
1
2
3
下一页
2023年4月20日
构建树状结构工具类
摘要: 实体类 @Data public class TreeNode { /** 节点ID */ private Integer id; /** 父节点ID:顶级节点为0 */ private Integer parentId; /** 节点名称 */ private String label; /**
阅读全文
posted @ 2023-04-20 15:39 小样儿i
阅读(55)
评论(0)
推荐(0)
2023年3月19日
mysql
摘要: MySQL如何一行数据统计多个COUNT SELECTcount(CASE WHEN 字段 = ‘值’ THEN 1 end) as ‘A’,count(CASE WHEN 字段 = ‘值’ THEN 1 end) ‘B’,count(CASE WHEN 字段 = ‘值’ THEN 1 end) ‘
阅读全文
posted @ 2023-03-19 23:40 小样儿i
阅读(13)
评论(0)
推荐(0)
excel文件本地下载和文件上传工具类
摘要: package com.xxiang.common.utils; /** * @Author:小样儿 * @PackageName:com.xxiang.common.utils * @ClassName:ExcelUtils * @Description: **/ import cn.aftert
阅读全文
posted @ 2023-03-19 23:39 小样儿i
阅读(67)
评论(0)
推荐(0)
2023年2月15日
springBoot SecurityBasic认证
摘要: securityBasic认证默认的账号为user 密码在启动项目的时候会自动生成一串的字符串 导入依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</art
阅读全文
posted @ 2023-02-15 16:50 小样儿i
阅读(310)
评论(0)
推荐(0)
2022年10月17日
io流操作文件夹及文件
摘要: /** * 复制文件夹到另外的文件夹 */ public void process() { Calendar calendar = Calendar.getInstance(); String dir = calendar.get(Calendar.YEAR) + "" + getTimeStrin
阅读全文
posted @ 2022-10-17 10:00 小样儿i
阅读(40)
评论(0)
推荐(0)
2022年9月14日
MediaType介绍
摘要: MediaType媒体类型:决定浏览器将以什么形式、什么编码对资源进行解析 Content-Type:也属于MediaType媒体类型,主要用于在请求头中指定资源的MediaType 一、MediaType类型类型 描述text/html HTML格式text/plain 纯文本格式,空格转换为 “
阅读全文
posted @ 2022-09-14 16:36 小样儿i
阅读(1855)
评论(0)
推荐(0)
2022年8月4日
easypoi,根据模板生成word工具类
摘要: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-aop</artifactId> <version>2.6.3</version> </dependency> //XWP
阅读全文
posted @ 2022-08-04 11:43 小样儿i
阅读(736)
评论(0)
推荐(0)
文件下载,文件转换
摘要: import org.apache.commons.io.FileUtils; import org.springframework.mock.web.MockMultipartFile; import org.springframework.web.multipart.MultipartFile;
阅读全文
posted @ 2022-08-04 11:42 小样儿i
阅读(110)
评论(0)
推荐(0)
时间工具类
摘要: /** * 日期转换格式工具类 */ public class DateTime { /** * 日期格式转换为字符串格式 * @param date * @return */ public static String perseString(Date date){ return new Simpl
阅读全文
posted @ 2022-08-04 11:38 小样儿i
阅读(33)
评论(0)
推荐(0)
springBoot发送邮件
摘要: 导入相关依赖<!--邮件--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-mail</artifactId> <version>2.6.3</version> </
阅读全文
posted @ 2022-08-04 11:32 小样儿i
阅读(40)
评论(0)
推荐(0)
1
2
3
下一页
公告