摘要: ####docker支持的存储驱动 | Linux distribution | Recommended storage drivers | Alternative drivers | | | | | | Docker Engine - Community on Ubuntu | overlay2 阅读全文
posted @ 2021-06-24 22:17 doite 阅读(352) 评论(0) 推荐(0)
摘要: hello.c #include <stdio.h> main() { printf("hello world\n"); } ####编译过程 #####打印gcc的版本、target、编译参数、线程模型 Using built-in specs. COLLECT_GCC=gcc COLLECT_L 阅读全文
posted @ 2021-06-24 22:11 doite 阅读(632) 评论(0) 推荐(0)
摘要: Centos7 手动编译nginx,搭建正向代理 ####下载nginx1.16.1 wget http://nginx.org/download/nginx-1.16.1.tar.gz tar xf nginx-1.16.1.tar.gz cd nginx-1.16.1 ####下载ngx_htt 阅读全文
posted @ 2021-06-24 22:08 doite 阅读(157) 评论(0) 推荐(0)
摘要: ####设置记录密码 git config --global credential.helper store ####revert commit git reset --soft "HEAD^" ####查看所有分支及其upstream git branch -avv ####查看所有tag git 阅读全文
posted @ 2021-06-21 23:15 doite 阅读(29) 评论(0) 推荐(0)
摘要: ####1.入口 初始化所有非懒加载单例,如果是FactoryBean是isEagerInit也要进行加载FactoryBean生成的单例 最后执行SmartInitializingSingleton的afterSingletonsInstantiated方法 @Override public vo 阅读全文
posted @ 2021-06-15 21:06 doite 阅读(115) 评论(0) 推荐(0)
摘要: ####web.xml //context配置 <context-param> <param-name>contextConfigLocation</param-name> <param-value>classpath*:applicationContext.xml</param-value> </ 阅读全文
posted @ 2021-06-12 15:23 doite 阅读(80) 评论(0) 推荐(0)
摘要: ###spring-context-support是spring-context的补充,如下子包说明 ####1. cache 一、cache包下补充org.springframework.cache.Cache的不同实现,主要是补充了caffine ehcache 二、支持Jcache标准(JSR 阅读全文
posted @ 2021-06-12 15:20 doite 阅读(7875) 评论(1) 推荐(0)
摘要: ServiceLoader是jdk对SPI(Service Provider Interface)机制的实现, 让具体业务实现与接口分离,让接口可以自由扩展,是非常常用的技术 ####常用场景如下: #####1. java nio java.nio.channels.spi.SelectorPro 阅读全文
posted @ 2021-05-26 14:50 doite 阅读(191) 评论(0) 推荐(0)
摘要: mybatis-plus批量插入生效条件和源码分析 ####代码 com.baomidou.mybatisplus.extension.service.IService#saveBatch(java.util.Collection<T>) ####源码实现 可以看到使用的是ExecutorType. 阅读全文
posted @ 2021-05-26 10:33 doite 阅读(1974) 评论(0) 推荐(0)
摘要: java的char类型是Unicode编码,支持中文,占两个字节 汉字转Unicode 初始化汉语拼音映射表,格式: Unicode十六进制大写 (拼音+声调数字) char转为16进制大写,查表,返回拼音列表(因为多音字) 拼音法 Hanyu Wade MPSII Yale Tongyong Gw 阅读全文
posted @ 2021-05-25 22:10 doite 阅读(77) 评论(0) 推荐(0)