通用分页列表数据集获取方法调取 参数说明: 2.get_addon_class 获取插件类的类名function get_addon_class($name) { $class = "Addons\\{$name}\\{$name}Addon"; if (! class_exists ( $clas ...
分类:
Web程序 时间:
2020-03-22 17:56:45
阅读次数:
92
MyBatis多表查询, 从表中映射主表,使用 association 标签,通过设置 javaType 属性关联实体类; 主表映射从表,使用 collection 标签,通过 ofType 属性关联实体类。 示例: 1、创建数据库 /* Navicat MySQL Data Transfer So ...
分类:
其他好文 时间:
2020-03-22 17:36:44
阅读次数:
74
安装MySQL ubuntu使用 "apt安装" :apt是Debian及其衍生发行版的软件包管理器。其他Linux安装方法见 "官网" 。 以下为当前环境未安装过MySQL,已安装过查看下面的第xx步和xx步。 1 Adding the MySQL APT Repository 2 通过APT安装 ...
分类:
数据库 时间:
2020-03-22 16:18:08
阅读次数:
100
使用第三方组件:(通用步骤) 1、导入对应的依赖 2、研究依赖如何配置 3、代码如何编写 4、提高扩展技术能力! 具体实现步骤: 1、创建数据库 mybatis_plus 2、创建user表 DROP TABLE IF EXISTS user; CREATE TABLE user ( id BIGI ...
分类:
编程语言 时间:
2020-03-22 15:45:11
阅读次数:
99
一、redis key相关的命令 keys * 查询当前库的所有键 exists <key> 判断某个键是否存在 type <key> 查看键的类型 del <key> 删除某个键 expire <key> <seconds> 为键值设置过期时间,单位秒。 ttl <key> 查看还有多少秒过期,- ...
分类:
其他好文 时间:
2020-03-22 13:35:47
阅读次数:
73
staticbooleandelFile(Filefile){if(!file.exists()){returnfalse;}if(file.isDirectory()){File[]files=file.listFiles();for(Filef:files){delFile(f);}}//删除文件,放在最后是方便删除空文件夹returnfile.delete();}
分类:
其他好文 时间:
2020-03-21 18:33:02
阅读次数:
100
Acwing785.快速排序 快排模板: y总教学大法好~: include using namespace std; const int N = 1000010; int q[N]; void quick_sort(int q[], int l, int r) { if (l = r) retur ...
分类:
编程语言 时间:
2020-03-21 14:50:29
阅读次数:
62
"https://leetcode.com/problems/peak index in a mountain array/" 给定一个 mountain 数组(满足A.length = 3,There exists some 0 A[i+1] ... A[A.length 1]),求其最大值 此题 ...
分类:
其他好文 时间:
2020-03-20 22:27:10
阅读次数:
65
https://www.cnblogs.com/champaign/p/10019275.html ...
分类:
其他好文 时间:
2020-03-20 14:29:50
阅读次数:
743
官方网址:https://www.kali.org/docs/virtualization/install-vmware-workstation-player-kali-guest-vm/ 在VMware(访客VM)中安装Kali 本指南用于在VMware内部虚拟化Kali Linux,使您拥有Ka ...
分类:
其他好文 时间:
2020-03-20 12:49:21
阅读次数:
66