管道( | ):将上一个命令的标准输出结果作为后一个命令的标准输入(进程间的通讯,只在同意终端) 命令管道:可用于任何进程之间的通讯(可在不同终端间),用mkfifo命令创建 [root@rhel8 ~]# mkfifo /tanbaobao/p_file [root@rhel8 ~]# ls -l ...
分类:
系统相关 时间:
2020-06-05 19:19:48
阅读次数:
116
我们日常开发中,经常会遇到图片太大然后加载慢的问题,话不多说,直接上图片压缩代码 入参: MultipartFile file String fileOrigName = file.getOriginalFilename(); String fileName = String.format("%s. ...
分类:
编程语言 时间:
2020-06-05 18:00:51
阅读次数:
60
打印流1.PrintStream:缓冲字节输出流2.PrintWriter:缓冲字符输出流 package file; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.Print ...
分类:
其他好文 时间:
2020-06-05 16:52:43
阅读次数:
89
#!/user/bin/python3# -*- coding: utf-8 -*-# @Time : 2020/6/5 11:40# @Author :Test_zhangping# @Email :981874735@qq.com# @File :class_python函数.py# 三步函数法 ...
分类:
编程语言 时间:
2020-06-05 16:43:34
阅读次数:
89
尝试用Qt5编译Qt4的工程,会遇到下面的问题: 错误: error: C1083: 无法打开包括文件: “QApplication”: No such file or directory 出现原因: Qt5里不再用QtGui模块,而是使用QtWidgets模块。 解决方法: 在.pro里加上QT ...
分类:
移动开发 时间:
2020-06-05 15:26:17
阅读次数:
56
第一点:Java代码实现文件上传 FormFile file = manform.getFile(); String newfileName = null; String newpathname = null; String fileAddre = "/numUp"; try { InputStre ...
分类:
编程语言 时间:
2020-06-05 15:23:22
阅读次数:
49
error while loading shared libraries: libssl.so.1.0.0: cannot open shared object file: No such file or directory 可能你的/usr/lib目录下没有libssl.so.1.0.0这个库,或 ...
分类:
其他好文 时间:
2020-06-05 15:20:36
阅读次数:
275
/** * 文件下载 * * @param response * @param file */ public static void downLoad(HttpServletResponse response, File file) { if (file.exists()) { response.s ...
分类:
其他好文 时间:
2020-06-05 15:04:54
阅读次数:
85
错误提示: warning: LF will be replaced by CRLF in xxx The file will have its original line endings in your working directory 注解: ? LF:Line Feed 换行 ? CRLF: ...
分类:
其他好文 时间:
2020-06-05 14:44:47
阅读次数:
82
一、前提该工程名字是“Qt_Test_1”,在该目录下还有文件夹“build-Qt_Test_1-Debug”和“build-Qt_Test_1-Release”。 后两个文件夹用于存放Debug程序和Release程序。 二、问题 #pragma comment(lib , "/Qt_Test_1 ...
分类:
其他好文 时间:
2020-06-05 14:40:43
阅读次数:
122