摘要: 使用json存入数据库时记得在实体类上添加注解 @TableName(value = "test",autoResultMap = true) <el-table-column label="图片" align="center" width="180px" :show-overflow-toolti 阅读全文
posted @ 2024-06-24 11:34 鱼鱼寡欢 阅读(1) 评论(0) 推荐(0) 编辑
摘要: /** 时间戳转日期 */ const timestampToDate = (timestamp: any) => { if (timestamp == null || timestamp == undefined) return ""; const date = new Date(timestam 阅读全文
posted @ 2024-05-07 15:07 鱼鱼寡欢 阅读(52) 评论(0) 推荐(0) 编辑
摘要: 1 数据库存放list @TableField(typeHandler = JsonLongSetTypeHandler.class) private List<String> imageList; 2 数据校验报错 @NotEmpty 用在集合类上面 @NotBlank 用在String上面 @N 阅读全文
posted @ 2024-04-29 15:08 鱼鱼寡欢 阅读(11) 评论(0) 推荐(0) 编辑
摘要: 1 引入依赖 <!-- 二维码相关 --> <dependency> <groupId>com.google.zxing</groupId> <artifactId>core</artifactId> <version>3.4.1</version> </dependency> <dependenc 阅读全文
posted @ 2024-04-13 16:12 鱼鱼寡欢 阅读(44) 评论(0) 推荐(0) 编辑
摘要: public class AESUtil { public static final String algorithm = "AES"; // AES/CBC/NOPaddin // AES 默认模式 // 使用CBC模式, 在初始化Cipher对象时, 需要增加参数, 初始化向量IV : IvPa 阅读全文
posted @ 2024-03-27 09:36 鱼鱼寡欢 阅读(9) 评论(0) 推荐(0) 编辑
摘要: 主要原因是文件元信息 有i属性,文件被设置成i属性 防止系统中某个关键文件被修改。 用chattr执行改变文件或目录的属性,可执行lsattr指令查询其属性。 查看文件属性 lsattr /etc/resolv.conf删除i属性 chattr -i /etc/resolv.conf增加i 属性 c 阅读全文
posted @ 2023-08-07 10:32 鱼鱼寡欢 阅读(349) 评论(0) 推荐(0) 编辑
摘要: <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-simple</artifactId> <version>1.7.25</version> <scope>compile</scope> </dependency> 阅读全文
posted @ 2023-03-03 13:00 鱼鱼寡欢 阅读(31) 评论(0) 推荐(0) 编辑
摘要: 1 前端 安装crypto npm install crypto-js js工具 import CryptoJS from 'crypto-js/crypto-js' /** * AES加密 :字符串 key iv 返回base64 */ export function Encrypt(word, 阅读全文
posted @ 2022-12-09 11:28 鱼鱼寡欢 阅读(185) 评论(0) 推荐(0) 编辑
摘要: 1.查询昨日数据 SELECT * FROM test WHERE DATEDIFF(DATE_FORMAT(NOW(),'%Y%m%d'),DATE_FORMAT(created_time,'%Y%m%d')) = 1 2.查询上月数据 SELECT * FROM test WHERE PERIO 阅读全文
posted @ 2022-12-01 14:13 鱼鱼寡欢 阅读(21) 评论(0) 推荐(0) 编辑
摘要: MinIO 是在 GNU Affero 通用公共许可证 v3.0 下发布的高性能对象存储。 它是与 Amazon S3 云存储服务兼容的 API。 使用 MinIO 为机器学习、分析和应用程序数据工作负载构建高性能基础架构。 1 拉取镜像 docker pull minio/minio 2 创建挂载 阅读全文
posted @ 2022-11-14 13:39 鱼鱼寡欢 阅读(281) 评论(0) 推荐(1) 编辑