log4j2配置文件xml详细了解 详细参考:https://www.cnblogs.com/new life/p/9246143.html log4j 2.x版本不再支持像1.x中的.properties后缀的文件配置方式,2.x版本配置文件后缀名只能为".xml",".json"或者".jsn" ...
分类:
其他好文 时间:
2019-08-22 17:22:27
阅读次数:
113
find 文件搜索 (在整个硬盘中查找,效率比较低) find 【搜索范围】【匹配条件】 -name 按照文件名搜索 find /etc -name filename 找出文件名为filename的文件 find /etc -name init * 找出文件名以init开头的文件 find find ...
分类:
其他好文 时间:
2019-08-22 01:08:13
阅读次数:
116
Laravel操作上传文件的方法 Laravel操作上传文件的方法 1、获取上传的文件 $file=$request->file('file'); 2、获取上传文件的文件名(带后缀,如abc.png) $filename=$file->getClientOriginalName(); 3、获取上传文 ...
分类:
Web程序 时间:
2019-08-21 00:38:20
阅读次数:
90
// 转码,防止中文乱码 filename = URLEncoder.encode(filename, "UTF-8"); ...
分类:
编程语言 时间:
2019-08-20 16:54:54
阅读次数:
83
场景: 做自动化是,每次都需要调用登录方法,代码重复比较多,在这种场景下,将登录功能抽取为装饰器demo ...
分类:
编程语言 时间:
2019-08-20 12:57:01
阅读次数:
135
一般可以直接调用的对象,我们称之为全局对象: 一下对象都加了console.log(),以在运行环境中的显示效果为标准 //包含文件名称的全路径: console.log(_filename); //文件的路径 (不包含文件名): console.log(_dirname); //定时函数: var ...
分类:
Web程序 时间:
2019-08-20 12:30:19
阅读次数:
108
Mock服务端:客户端Get请求,返回json数据两种方式:1,直接在response中返回json数据 2,通过json文件返回;准备工作:wiremock-body-transformer-1.1.6.jarwiremock-standalone-2.14.0.jar安装java运行环境(jdk ...
分类:
Web程序 时间:
2019-08-19 13:10:19
阅读次数:
106
一 cat [test@VM_0_15_centos ~]$ cat --helpUsage: cat [OPTION]... [FILE]...Concatenate FILE(s), or standard input, to standard output. -A, --show-all eq ...
分类:
系统相关 时间:
2019-08-19 12:53:34
阅读次数:
106
把内容过程经常用到的一些内容片段收藏起来,如下的内容内容是关于C#WPF中调用打开文件对话框的内容。privatestringOpenDialog(){OpenFileDialogopenFileDialog=newOpenFileDialog();openFileDialog.Title="选择文件";openFileDialog.FileName=string.Empty;openFileDi