摘要: 一、介绍 功能就是发布事件,也就是把某个事件告诉的所有与这个事件相关的监听器。 1、使用ApplicationEventPublisher 可以进行事件发布 2.ApplicationListener ApplicationListener接口是由 Spring 提供的事件订阅者必须实现的接口,我们 阅读全文
posted @ 2022-09-29 14:55 爱生活(^_-) 阅读(225) 评论(0) 推荐(0)
摘要: 一、天阳-chery jvm 2.hashmap 初始大小,扩容机制 3.设计模式 有哪些设计模式,单例有2种那种在多线程下是安全的 但是对于懒汉式来说,在一个线程获取实例的时候,可能会有另一个线程也在获取实例,导致产生两个及以上的实例对象出现 4.介绍下项目用的什么框架 5.分布式事务怎么解决 阅读全文
posted @ 2022-09-28 08:57 爱生活(^_-) 阅读(22) 评论(0) 推荐(0)
摘要: 集合操作 //List对象获取其中某一个属性转成 List<String> List<String> vins = excelList.stream().map(TS::getVin).collect(Collectors.toList()); // 去重 List<String> disStrin 阅读全文
posted @ 2022-08-03 14:25 爱生活(^_-) 阅读(45) 评论(0) 推荐(0)
摘要: BUG 1、mybatis 相关 Subquery returns more than 1 row; 错误的意思是指子查询结果多于一行。 SELECT id FROM VEHICLE_DEVICE_INSTALLATION WHERE sim_id = (SELECT id FROM VEHICLE 阅读全文
posted @ 2022-08-03 14:18 爱生活(^_-) 阅读(222) 评论(0) 推荐(0)
摘要: 1.常用代码 2.好的功能性代码 和设计 3.bug记录 4.项目经验 5.代码库 二、开发便捷 表代码生成 D:\learnCode\test D:\javaCode\selfCode\gieee\superstars easycode 3、导入excel根据日志输出sql D:\learnCod 阅读全文
posted @ 2022-07-05 13:27 爱生活(^_-) 阅读(40) 评论(0) 推荐(0)
摘要: 1、BCrypt加密 ,比对 public static void main(String[] args) { String password = "123456"; String hashpw = BCrypt.hashpw(password, BCrypt.gensalt()); System. 阅读全文
posted @ 2022-05-12 13:35 爱生活(^_-) 阅读(58) 评论(0) 推荐(0)
摘要: ### 一、mysql #### 1.1 建表语句(含索引) ```java DROP TABLE IF EXISTS `VEHICLE_BRAND`; CREATE TABLE `admin_bu` ( `id` BIGINT(20) NOT NULL AUTO_INCREMENT, `admin 阅读全文
posted @ 2022-04-28 15:35 爱生活(^_-) 阅读(114) 评论(0) 推荐(0)
摘要: 核心代码库 cool 核心代码库 D:\learnCode\cool 过去临时使用的 D:\learnCode\smallTool 一、Controller import com.ne.boot.common.entity.Page; import com.ne.boot.common.entity 阅读全文
posted @ 2022-04-28 13:33 爱生活(^_-) 阅读(76) 评论(0) 推荐(0)
摘要: 1、xx 阅读全文
posted @ 2022-04-18 14:26 爱生活(^_-) 阅读(10) 评论(0) 推荐(0)
摘要: 技术类 1、导入数据时提示 Variable 'sql_mode' can't be set to the value of 'NULL' 初始化数据到华为云,导入后有这个提示,但是数据实际入库了,不影响 这个错是因为注释引起的 2、 业务类 A、OTA协议 a1、发送kafka没有日志 测试ota 阅读全文
posted @ 2022-04-13 13:36 爱生活(^_-) 阅读(115) 评论(0) 推荐(0)