找准目标,不断前行
摘要: com.mysql.jdbc.MysqlDataTruncation: Data truncation: Incorrect integer value: '' for column 'n_before_group_id' at row 1 mybatis foreach 插入时出现这个报错,原因是 阅读全文
posted @ 2023-11-30 23:31 kevinZhuZhu 阅读(46) 评论(0) 推荐(0) 编辑
摘要: @Transactional(rollbackFor = Exception.class, transactionManager = "aTransactionManager", isolation = Isolation.READ_COMMITTED) public R testDeadlock( 阅读全文
posted @ 2023-10-18 09:18 kevinZhuZhu 阅读(6) 评论(0) 推荐(0) 编辑
摘要: public static void main(String[] args) { List<Map<String,Object>> list = new ArrayList<>(); Map<String,Object> map1 = new HashMap<String, Object>(); m 阅读全文
posted @ 2023-06-08 16:37 kevinZhuZhu 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 有时候需要代码中内存排序以下是两个例子:eg1.list实体类 list = list.stream() .sorted(Comparator.comparingDouble(aaEntity::getbbb).thenComparing(aaEntity::getccc).reversed()) 阅读全文
posted @ 2023-05-25 16:47 kevinZhuZhu 阅读(228) 评论(0) 推荐(0) 编辑
摘要: JARFILE="xxx-0.0.1-SNAPSHOT" echo $JARFILE ID=`ps -ef | grep "$JARFILE" | grep -v "grep" | awk '{print $2}'` echo $ID echo " " for id in $ID do kill - 阅读全文
posted @ 2022-07-19 14:25 kevinZhuZhu 阅读(477) 评论(0) 推荐(0) 编辑
摘要: 今天突然发现有个接口中的值被截取了,debug一波后发现sql查询出来的结果已经是不完整的,排查后发现这个sql用了group_concat后查询出来的数据被截取了,此时我的内心。。。 group_concat在部分版本中默认字符长度为1024,真是个大坑,不知道的还以为能完整拼接呢,结果被截取了, 阅读全文
posted @ 2022-04-21 00:04 kevinZhuZhu 阅读(487) 评论(0) 推荐(0) 编辑
摘要: 1. group by 和 where 同时使用 where > group by 2. max,where,group by同时使用 where > group by > max 很多时候我们使用了第二种的时候会出现数据数据错位的问题, 阅读全文
posted @ 2022-03-02 10:40 kevinZhuZhu 阅读(318) 评论(0) 推荐(0) 编辑
摘要: import turtle turtle.title('Python(冰墩墩,情人节特别版本)') turtle.speed(40) # 可以自己调节速度 # 左手 turtle.penup() turtle.goto(177, 112) turtle.pencolor("lightgray") t 阅读全文
posted @ 2022-02-14 18:06 kevinZhuZhu 阅读(21710) 评论(0) 推荐(0) 编辑
摘要: #!!!!!测试专用,使用时注意数据安全 #创建表tb_test DROP TABLE IF EXISTS tb_test; CREATE TABLE IF NOT EXISTS tb_test( id int(11) AUTO_INCREMENT PRIMARY KEY #添加了 主键约束 ); 阅读全文
posted @ 2022-01-17 16:20 kevinZhuZhu 阅读(47) 评论(0) 推荐(0) 编辑
摘要: 先来例子,仔细感悟 #输出0也就是FALSE select 0 = '123abc'; #输出123 select cast('123abc' as signed); #123abc select cast('123abc' as char); #输出1也就是TRUE select 0 = 'abc 阅读全文
posted @ 2021-12-22 17:32 kevinZhuZhu 阅读(379) 评论(0) 推荐(0) 编辑