本文链接:https://blog.csdn.net/kturing/article/details/79844437 go语言中不倾向使用单引号表示字符串,单引号…
本文链接:https://blog.csdn.net/kturing/article/details/79844437 go语言中不倾向使用单引号表示字符串,单引号…
背景介绍: 表:push_log 索引A:task_batch varchar(60) USING BTREE 普通索引 索引B:push_task_id int(11) USING BTREE 普通索引 执行计划解读: 走全表扫描,未使用到索引 explain select * from ol_push_log where task_batch = 1; 索引生效 explain select * from ol_push_log where task_batch = "1"; 索引生效 ex…
Grafana 数据监控平台: Grafana是一款用Go语言开发的开源数据可视化工具,可以做数…
[#](http://www.cyc2018.xyz/其它/设计模式/设计模式 - 抽象工厂.html#intent)Intent 提供一个接口,用于创建 相…
术语: resultMap.id 结果集唯一标识符 resultMap.type 结果集 返回数据类型 resultMap -> result 结果集属性字段 resultMap -> id 结果集主键字段(如果标识为主键,mybatis 内部会优化运行) <—join查询—> resultMap -> collection 关联查询标签 resultMap -> collection.property 关联数据 在 bean中对应的关联字段 应该是一个List resultMa…
在linux中添加ftp用户,并设置相应的权限,操作步骤如下: 1、环境:ftp为vsftp。被限制用户名为test。被限制路径为/home/test 2、建用户,命令行状态下,在root用户下: 运行命令:“useradd -d /home/test test” //增加用户test,并制定test用户的主目录为/home/test 运行命令:“passwd test” //为test设置密码,运行后输入两次相同密码 3、更改用户相应的权限设置: 运行命令:“usermod -s /sbin/nologin …
【强制】当 switch 括号内的变量类型为 String 并且此变量为外部参数时,必须先进行 null 判断。 反例:如下的代码输出是什么? public class SwitchString { public static void main(String[] args) { method(null); } public static void method(String param) { switch (param) { // 肯定不是进入这里 case "sth": System.out.println("…