2019年7月2日

java - 数字转换成以0开头的字符串

摘要: 简单写就 String.format("%04d", 3) 不过令我意外的是 StringBuilder + replace 效率居然更高 public class Test { public static String format2(int shortval) { String formatte 阅读全文

posted @ 2019-07-02 18:02 疯狂的妞妞 阅读(2300) 评论(0) 推荐(1) 编辑

mysql - 查看锁表

摘要: 概述 数据库产生锁,一般就是锁等待,等待超时,就直接报错。 ** 案例一:** 更新一些数据,需要很长时间才能完成,这时候其它线程,也想更新这些数据,就会进入等待。 ** 案例二:** 使用了 for update 语句。 select * from demo for update; ** 案例三: 阅读全文

posted @ 2019-07-02 17:56 疯狂的妞妞 阅读(2752) 评论(0) 推荐(1) 编辑

java - listmap组装树形结构

摘要: package cn.seaboot.commons.core; import cn.seaboot.commons.exception.BizException; import cn.seaboot.commons.lang.Warning; import javax.annotation.Nul 阅读全文

posted @ 2019-07-02 17:46 疯狂的妞妞 阅读(647) 评论(0) 推荐(0) 编辑

导航