摘要: 1.首先查看是否开启了binlog show variables like '%log_bin%'; 我的已经开启了,如果没开启则开启binlog 2.查看有哪些binlog文件和正在使用的binlog文件 查看有哪些binlog文件 show binary logs; 或者 show master 阅读全文
posted @ 2023-07-04 16:24 江南大才子 阅读(230) 评论(0) 推荐(0) 编辑
摘要: 一、表设计 二、entity import com.fasterxml.jackson.annotation.JsonIgnore; import com.joyoung.cloud.security.common.entity.BaseEntity; import io.swagger.annot 阅读全文
posted @ 2023-07-04 15:36 江南大才子 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 前几天在项目读取resources目录下的文件时碰到一个小坑,明明在本地是可以正常运行的,但是一发到测试环境就报错了,说找不到文件,报错信息是:class path resource [xxxx] cannot be resolved to absolute file path because it 阅读全文
posted @ 2023-07-04 15:28 江南大才子 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 当我们需要在工具类中获取yml配置的时候,由于变量是staic导致获取不到yml配置因为spring加载静态方法比IOC早,所以不能直接使用@Value注解读取yml配置,读取结果是null。 @Component public class TestUtil { // 使用@Value注解读取yml 阅读全文
posted @ 2023-07-04 15:20 江南大才子 阅读(540) 评论(0) 推荐(0) 编辑