
随手记
qq_29816519
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
clickhouse源码编译
环境准备: 运行环境:centos7 clickhouse版本:v21.7.5.29-stable gcc版本:gcc11 环境安装: git安装:yum install git -y clickhouse源码下载: # 替换github的源(因为墙的原因) git config --global url."https://hub.fastgit.org".insteadOf https://github.com git clone https://github.com/ClickHouse..原创 2022-01-12 16:53:34 · 1103 阅读 · 0 评论 -
程序员必备英语单词
A abstract 抽象的 abstract base class (ABC)抽象基类 abstract class 抽象类 abstraction 抽象、抽象物、抽象性 access 存取、访问 access function 访问函数 access level访问级别 account 账户 action 动作 activate 激活 active 活动的 actual parameter 实参 adapter 适配器 add-in 插件 address 地址 address space 地址空间 AD原创 2020-10-10 13:56:46 · 238 阅读 · 0 评论 -
springBoot实现websocket
使用方式 使用springBoot注解 @ServerEndpoint 实现websocket 依赖引入 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-websocket</artifactId> </dependency> 注册ServerEndpoin..原创 2020-09-22 18:29:27 · 166 阅读 · 0 评论 -
JDK源码中HashMap hash(key)方法原理
我们以java 8为例 说明 HashMap的Hash(Key)设计原理: 源码展示: static final int hash(Object key) { int h; return (key == null) ? 0 : (h = key.hashCode()) ^ (h >>> 16); } 大家都知道上面代码里的key.hashCode()函数调用的是key键值类型自带的哈希函数,返回int型散列值 理论上散列值是一个int型,如果直接拿原创 2020-08-24 17:56:14 · 436 阅读 · 0 评论 -
springboot打印dao层log
需要在application.properties增加 logging.level.dao层包名.dao=debug即可原创 2020-08-11 10:09:13 · 813 阅读 · 0 评论 -
String字符串按照固定的顺序排序
public class Test { public static void main(String[] args) throws IntrospectionException, IllegalAccessException { List<Person> personList = new ArrayList<>(); personList.add(new Person("a", 27)); personList.add(new原创 2020-08-10 18:00:47 · 973 阅读 · 0 评论