摘要:
实体类 @Data public class TreeNode { /** 节点ID */ private Integer id; /** 父节点ID:顶级节点为0 */ private Integer parentId; /** 节点名称 */ private String label; /** 阅读全文
摘要:
MySQL如何一行数据统计多个COUNT SELECTcount(CASE WHEN 字段 = ‘值’ THEN 1 end) as ‘A’,count(CASE WHEN 字段 = ‘值’ THEN 1 end) ‘B’,count(CASE WHEN 字段 = ‘值’ THEN 1 end) ‘ 阅读全文
摘要:
package com.xxiang.common.utils; /** * @Author:小样儿 * @PackageName:com.xxiang.common.utils * @ClassName:ExcelUtils * @Description: **/ import cn.aftert 阅读全文
摘要:
securityBasic认证默认的账号为user 密码在启动项目的时候会自动生成一串的字符串 导入依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</art 阅读全文
摘要:
/** * 复制文件夹到另外的文件夹 */ public void process() { Calendar calendar = Calendar.getInstance(); String dir = calendar.get(Calendar.YEAR) + "" + getTimeStrin 阅读全文
摘要:
MediaType媒体类型:决定浏览器将以什么形式、什么编码对资源进行解析 Content-Type:也属于MediaType媒体类型,主要用于在请求头中指定资源的MediaType 一、MediaType类型类型 描述text/html HTML格式text/plain 纯文本格式,空格转换为 “ 阅读全文
摘要:
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-aop</artifactId> <version>2.6.3</version> </dependency> //XWP 阅读全文
摘要:
import org.apache.commons.io.FileUtils; import org.springframework.mock.web.MockMultipartFile; import org.springframework.web.multipart.MultipartFile; 阅读全文
摘要:
/** * 日期转换格式工具类 */ public class DateTime { /** * 日期格式转换为字符串格式 * @param date * @return */ public static String perseString(Date date){ return new Simpl 阅读全文
摘要:
导入相关依赖<!--邮件--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-mail</artifactId> <version>2.6.3</version> </ 阅读全文