摘要: Translation翻译插件 更新TTK失败,请检查网络连接 >Plugin v2.9.5-171u192 >IntelliJ IDEA 2019.1 >Build #IU-191.6183.87, built on March 27, 2019 >JRE: 1.8.0_202-release-1 阅读全文
posted @ 2022-11-09 12:06 汐汐不嘻嘻 阅读(736) 评论(0) 推荐(0)
摘要: /** * websocket消息订阅处理 */ @Slf4j @Component @ServerEndpoint(value = "/socket/subscribe") @ToString public class SocketSubscribeEndPoint { /** * websock 阅读全文
posted @ 2022-10-14 09:45 汐汐不嘻嘻 阅读(802) 评论(0) 推荐(0)
摘要: #首先区分是锁超时还是死锁-- 当前运行的所有事务 SELECT * FROM information_schema.INNODB_TRX; -- 当前出现的锁 SELECT * FROM information_schema.INNODB_LOCKs; -- 锁等待的对应关系 SELECT * F 阅读全文
posted @ 2022-09-29 11:36 汐汐不嘻嘻 阅读(487) 评论(0) 推荐(0)
摘要: /** * 取尽存储的值,获取最新值 * * @param key * @return */ @Override public String popData(String key) { List<String> list = new ArrayList<>(); String popDataKey 阅读全文
posted @ 2022-09-06 16:53 汐汐不嘻嘻 阅读(389) 评论(0) 推荐(0)
摘要: 需求: 根据复合查询条件对数据分组,并对分组数据按不同的时间排序 思路: 搞一个sort临时字段用于分组,最后用case when按时间分别排序 SELECT * from ( SELECT *, case when (line_id is not null ) and state = 3 THEN 阅读全文
posted @ 2022-08-22 17:58 汐汐不嘻嘻 阅读(1945) 评论(0) 推荐(1)
摘要: /** * 开始分页 * * @param list * @param current 页码 * @param size 每页大小 * @return */ public class PageUtils { public static <T> List<T> startPage(List<T> li 阅读全文
posted @ 2022-08-04 15:51 汐汐不嘻嘻 阅读(476) 评论(0) 推荐(1)
摘要: -- 获取表数据量排行SELECTtable_schema ,table_name ,data_free,table_rows ,TRUNCATE ( data_length / 1024 / 1024, 2 ) AS '数据容量(MB)',TRUNCATE ( index_length / 102 阅读全文
posted @ 2022-07-22 17:45 汐汐不嘻嘻 阅读(578) 评论(0) 推荐(0)
摘要: @GetMapping("/information") @Cacheable(cacheNames = "dfs_screen_information", key = "'lineId=' + #lineId + ',componentName=' + #componentName + ',date 阅读全文
posted @ 2022-06-23 16:57 汐汐不嘻嘻 阅读(698) 评论(0) 推荐(0)
摘要: // 定义函数式接口 @FunctionalInterface interface MapFunction<A, B, C, D, E, F, R> { R apply(A a, B b, C c, D d, E e, F f); } /** * 定义的策略map */ private Map<St 阅读全文
posted @ 2022-06-14 10:10 汐汐不嘻嘻 阅读(972) 评论(0) 推荐(0)
摘要: win+R shell:Common startup 打开开机启动文件夹: 准备一个开机启动的脚本放到这个文件夹下: 脚本如下 eg1: D: CD D:\software\nacos\nacos\bin start startup.cmd eg2: D: CD D:\software\redis 阅读全文
posted @ 2022-06-13 09:55 汐汐不嘻嘻 阅读(233) 评论(0) 推荐(0)