码迷,mamicode.com
首页 >  
搜索关键字:direct path write temp    ( 55479个结果)
python logger
``` import os import logging from logging.handlers import TimedRotatingFileHandler from logging import handlers import socket def logger(path, loggern... ...
分类:编程语言   时间:2020-05-25 17:50:36    阅读次数:69
@Scheduled注解报错
使用注解的时候再service层的两个方法中分贝添加了@Scheduled注解和@Transactional注解,启动项目时报错,报错信息为: log4j:WARN Please initialize the log4j system properly.log4j:WARN See http://l ...
分类:其他好文   时间:2020-05-25 17:24:16    阅读次数:89
百度的Ueditor上传到七牛,oss等第三方存储的通用方法(php版)
用百度的Ueditor上传图片默认保存到本地,在分布式系统中使用非常不方便,一般需要上传到七牛,阿里云的oss上 需要七牛sdk 6.1.9(支持php5.2,高版本可自行改正) Ueditor 1.4.3 主要原理:百度ueditor上传文件时会创建本地文件,并返回文件路径 $this->full ...
分类:Web程序   时间:2020-05-25 15:41:09    阅读次数:127
IDEA中使用Maven下载依赖时报错:unable to find valid certification path to requested target
https://my.oschina.net/u/4175080/blog/3162749 之前遇到这错误时我是导入证书文件解决了一段时间,今天开另一个项目下载依赖的时候竟然又出现了这问题。。。寻思着是不是可以直接跳过这个证书验证? 好的,maven可以加入这个:maven.wagon.http.s ...
分类:其他好文   时间:2020-05-25 15:22:26    阅读次数:89
linux jdk版本随时切换
项目处理问题遇到如下情况,引用第三方的jar包报出ClassDefNotFoundException错误导致app崩溃,双方沟通确认该类存在且排除工程未clean,代码混淆导致等原因。 注意到编译app的时候提示了很多如下与正常情况下不一样的信息: trouble processing:bad cl ...
分类:系统相关   时间:2020-05-25 15:15:27    阅读次数:70
下载并删除文件
下载文件: $ch = curl_init($musicPathUrl); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_BINAR ...
分类:其他好文   时间:2020-05-25 12:47:26    阅读次数:61
置的测试文件的大小一定要大过你的内存(最佳为内存的两倍大小),不然linux会给你的读写的内容进行缓存,会使数值非常不准确。
使用iozone测试磁盘性能 IOzone是一个文件系统测试基准工具。可以测试不同的操作系统中文件系统的读写性能。可以通过 write, re-write, read, re-read, random read, random write, random mix, backwards read, r ...
分类:系统相关   时间:2020-05-25 12:35:52    阅读次数:85
IDEA快捷键
1. 格式化 去掉空白: Ctrl + Shift + J 格式化代码: Ctrl + Alt + L 2. 查找与替换 该文件下查找(Ctrl+F) 项目全局查找(Ctrl+Shift+F 或【Edit】——>【Find】——>【Find in Path…】) 该文件下替换(Ctrl+R) 项目全 ...
分类:其他好文   时间:2020-05-25 12:23:03    阅读次数:52
LeetCode 38. 外观数列 Count and Say
解法一: class Solution { public: string countAndSay(int n) { char ch[] = {'0', '1', '2', '3'}; string s = "1"; string temp; int cnt = 1; //出现次数 for (int ...
分类:其他好文   时间:2020-05-25 12:12:35    阅读次数:51
Git-idea学习
需要idea先配置git: File --> Setting --> Version Control > Git 设置path to git executable 设置git.exe 位置:D:\Dev\Program\Git\bin\git.exe ...
分类:其他好文   时间:2020-05-25 12:07:25    阅读次数:72
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!