- 博客(4)
- 问答 (3)
- 收藏
- 关注
原创 ByteArrayOutputStream 与 FileOutputStream 的write
ByteArrayOutputStream 与 FileOutputStream 的write方法分析
2022-05-26 10:28:08
1887
原创 HashMap tableSizeFor(int cap) 解析
HashMap tableSizeFor(int cap) 解析源码示例static final int tableSizeFor(int cap) { int n = cap - 1; n |= n >>> 1; n |= n >>> 2; n |= n >>> 4; n |= n >>> 8; n |= n >>>
2022-05-24 15:46:39
183
原创 Mysql8 的 递归函数
MySQL 8 提供了相关递归处理的函数。cte(Common Table Expressions):通用表表达式示例:WITH RECURSIVE cte AS ( # 初始: 获取 菜单表中 pid 是 0 的数据作为 cte的初始数据 SELECT * FROM sys_menu WHERE pid=0 UNION ALL # 开始检查是否循环 # 将 菜单表的pId与 cte表的 id进行关联合并到cte,如果cte数据未增加 退出
2022-05-23 16:25:17
1832
2
原创 SpringBoot的自动加载(自理解,多多指教)
SpringBoot的自动加载@SpringBootApplication我们在SpringBoot的启动类(xxxApplication.class)上面可以看到注解 @SpringBootApplication ;该注解表示这是一个SpringBootApplication的应用启动类的入口.类似于Java的main()方法。进到 SpringBootApplication 注解内部。package org.springframework.boot.autoconfigure;imp
2022-05-06 15:44:05
505
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人