摘要: 热部署 即 修改代码不用重启项目 idea自动重启 在debug模式下 使用最新的代码 说白了就是避免修改完代码频繁启动项目 idea自动完成 1.pom导入jar <dependency> <groupId>org.springframework.boot</groupId> <artifactI 阅读全文
posted @ 2021-08-27 09:57 wf.zhang 阅读(550) 评论(0) 推荐(0) 编辑
摘要: 原文: https://www.cnblogs.com/youzhibing/p/15101096.html 多字段 组成的list 查询数据库 # 字符串 * 1 转数值 SELECT * FROM (SELECT * FROM `icbc_auto_charge_amount_config` W 阅读全文
posted @ 2021-08-13 10:52 wf.zhang 阅读(902) 评论(0) 推荐(0) 编辑
摘要: 参考链接: https://blog.csdn.net/Marmara01/article/details/85196803 final、finally、finalize 有什么区别? final:是修饰符,如果修饰类,此类不能被继承;如果修饰方法和变量,则表示此方法和此变量不能在被改变,只能使用。 阅读全文
posted @ 2021-08-06 15:47 wf.zhang 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 使用smart-doc 生成接口文档 方式一 插件方式 springboot 启动类 运行生成接口文档 1.pom文件 导入插件 <!--smart-doc 生成接口文档--> <plugin> <groupId>com.github.shalousun</groupId> <artifactId> 阅读全文
posted @ 2021-08-06 10:55 wf.zhang 阅读(1221) 评论(0) 推荐(0) 编辑
摘要: MySQL 中 date datetime timestamp 的区别 date 精度到天,格式为:YYYY-MM-DD 2021-07-30 timestamp 精确到秒 YYYY-MM-DD HH:MM:SS 2021-07-30 14:31:20 datetime 精确到秒 YYYY-MM-D 阅读全文
posted @ 2021-07-30 14:54 wf.zhang 阅读(91) 评论(0) 推荐(0) 编辑
摘要: public class TestUUID { public static void main(String[] args) { System.out.println("UUID.randomUUID() = " + UUID.randomUUID().toString()); System.out 阅读全文
posted @ 2021-07-20 14:12 wf.zhang 阅读(503) 评论(0) 推荐(0) 编辑
摘要: #按照t表结构新建表t1 CREATE table t1 LIKE t #从表查出50新增到t1 insert into t1 select * from t LIMIT 50 阅读全文
posted @ 2021-07-19 14:52 wf.zhang 阅读(306) 评论(0) 推荐(0) 编辑
摘要: 1.什么是责任链模式 责任链模式(Chain of Responsibility Pattern) 又称职责链模式 为请求创建了一个接收者对象的链。对请求的发送者和接收者进行解耦。这种类型的设计模式属于行为型模式。 责任链(Chain of Responsibility)模式的定义:为了避免请求发送 阅读全文
posted @ 2021-06-29 18:49 wf.zhang 阅读(65) 评论(0) 推荐(0) 编辑
摘要: 思路 调用拦截器 实现加解密 通过自定义加解密拦截器 判断是否是 加解密实体类 的字段 调用 加解密处理类 执行具体算法加解密 自定义类注解 /** * 注解敏感信息类的注解 */ @Inherited @Target({ ElementType.TYPE }) @Retention(Retenti 阅读全文
posted @ 2021-06-27 00:38 wf.zhang 阅读(1286) 评论(0) 推荐(0) 编辑
摘要: 1.什么是观察者模式 观察者模式(Observer Pattern)又称为发布/订阅模式, 属于行为型模式。 定义对象间的一种一对多的依赖关系,当一个对象的状态发生改变时,所有依赖于它的对象都得到通知并被自动更新。 自己理解 一个事情随着另一件事情发生变化 , 两个事情存在内在联系 ,一个是观察者 阅读全文
posted @ 2021-06-27 00:06 wf.zhang 阅读(88) 评论(0) 推荐(0) 编辑