摘要: 一、编码规范 1、基于Optional的空值优雅处理:是时候优雅的和NullPointException说再见了 二、数据库访问 1、JPA Spring Data JPA系列1:JDBC、ORM、JPA、Spring Data JPA,傻傻分不清楚?给你个选择SpringDataJPA的理由! S 阅读全文
posted @ 2024-06-05 12:04 Matt_Cheng 阅读(10) 评论(0) 推荐(0) 编辑
摘要: 一、环境变量 参考 1、查看环境变量 # 所有变量 set # 指定 set path 2、设置环境变量(指定当前窗口生效) # 指定值 set path=c:\tmp set path=%path%;c:\tmp set abc="C:\Program Files"# 置空set abc= 阅读全文
posted @ 2023-09-26 15:20 Matt_Cheng 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 1、检查python版本 python -V pip -V 2、设置pip源 pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/ pip config list # 非https源,须加信任 pip conf 阅读全文
posted @ 2023-09-26 15:01 Matt_Cheng 阅读(67) 评论(0) 推荐(0) 编辑
摘要: 跳表 Skip List--跳表(全网最详细的跳表文章没有之一) https://www.jianshu.com/p/9d8296562806 阅读全文
posted @ 2023-08-12 17:22 Matt_Cheng 阅读(6) 评论(0) 推荐(0) 编辑
摘要: 一、安装配置 hive安装使用 在上述步骤基础上,还需在core-site.xml中新增如下配置 <!-- hiveserver2 --> <property> <name>hadoop.proxyuser.matt.hosts</name> <value>*</value> </property> 阅读全文
posted @ 2022-08-21 10:49 Matt_Cheng 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 一 线程类型 Java程序使用的线程分为两类: 手动创建的线程 线程池管理的线程 二 异常默认处理 对于手动创建的线程,线程运行过程中抛出未捕获的异常的默认行为如下: 1 线程终止,异常信息及堆栈输出到标准错误流(System.err()) 2 阻塞线程(Thread.join())正常执行 对于线 阅读全文
posted @ 2022-07-27 11:17 Matt_Cheng 阅读(554) 评论(0) 推荐(0) 编辑
摘要: 一、文件加载 基于ClassLoader,有两种方式 // resource/default.properties // 方式一 InputStream in = UserService.class.getResourceAsStream("/default.properties"); // 方式二 阅读全文
posted @ 2022-04-14 17:25 Matt_Cheng 阅读(21) 评论(0) 推荐(0) 编辑
摘要: yapi socketio 阅读全文
posted @ 2021-08-25 15:24 Matt_Cheng 阅读(49) 评论(0) 推荐(0) 编辑
摘要: 一、静态文件配置 spring boot 2.3.5.RELEASE 1、默认情况下,静态文件映射模板为:/**,映射路径为:"classpath:/META-INF/resources/", "classpath:/resources/", "classpath:/static/", "class 阅读全文
posted @ 2021-06-08 18:21 Matt_Cheng 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 一、启动、版本 service docker status service docker restart docker --version docker ps -a --no-trunc 查看完整驱动命令 二、帮助 docker --help docker COMMAND --help 三、容器管理 阅读全文
posted @ 2020-04-09 18:05 Matt_Cheng 阅读(165) 评论(0) 推荐(0) 编辑