wjbk

导航

2024年4月17日

将一个列表分割成指定大小的多个子列表:Lists.partition

摘要: 依赖项添加: <dependency> <groupId>com.google.guava</groupId> <artifactId>guava</artifactId> <version>31.0.1-jre</version> <!-- 请检查最新版本 --> </dependency> pu 阅读全文

posted @ 2024-04-17 16:01 wjbk 阅读(1) 评论(0) 推荐(0) 编辑

2024年2月22日

docker镜像运行安装命令,生成新镜像

摘要: 1、创建一个Dockerfile vim Dockerfile 在DockerFile里编辑内容: FROM xxx.com/docker-private/ainote/java-ffmpeg-python3-ubuntu:1.9(FROM基础镜像) RUN pip install PyMuPDF 阅读全文

posted @ 2024-02-22 18:49 wjbk 阅读(10) 评论(0) 推荐(0) 编辑

2024年2月20日

java设置文件上传的大小限制

摘要: #配置文件添加文件上传的大小限制 spring.servlet.multipart.max-file-size=50MB spring.servlet.multipart.max-request-size=50MB 阅读全文

posted @ 2024-02-20 10:34 wjbk 阅读(27) 评论(0) 推荐(0) 编辑

linux设置系统时间

摘要: #date //显示当前日期 #date -s //设置当前时间,只有root权限才能设置,其他只能查看。 #date -s 20061010 //设置成20061010,这样会把具体时间设置成空00:00:00 #date -s 12:23:23 //设置具体时间,不会对日期做更改 #date - 阅读全文

posted @ 2024-02-20 10:27 wjbk 阅读(4) 评论(0) 推荐(0) 编辑

java图片压缩

摘要: /** * 压缩图片并返回字节数组 * @param file * @return * @throws Exception */ private byte[] compress(File file) throws Exception { File temp = new File(file.getAb 阅读全文

posted @ 2024-02-20 10:12 wjbk 阅读(7) 评论(0) 推荐(0) 编辑

2024年1月12日

设置ftp读取隐藏文件和文件夹

摘要: //设置ftp读取隐藏文件和文件夹 ftpClient.setListHiddenFiles(true); 阅读全文

posted @ 2024-01-12 17:43 wjbk 阅读(9) 评论(0) 推荐(0) 编辑

2024年1月8日

linux定期清理nohup日志

摘要: 1、在nohup.out 所在目录创建一个clearNohup.sh文件 2、在文件里复制下面脚本 #!/bin/bash # Author: jianwang # Last Update: 2024.01.08 # Description: nohup.out 日志分割 this_path=$(c 阅读全文

posted @ 2024-01-08 11:06 wjbk 阅读(173) 评论(0) 推荐(0) 编辑

linux关机命令

摘要: 1、立刻关闭: shutdown -h now 2、定时到 17:30 关机 shutdown -h 17:30 阅读全文

posted @ 2024-01-08 10:52 wjbk 阅读(2) 评论(0) 推荐(0) 编辑

2023年11月30日

elasticSearch开发者工具聚合查询

摘要: index/_search POST //index索引{ "query": { "bool": { "filter": [//过滤条件 { "term": { "business.keyword": { "value": "值", "boost": 1 } } } ], "adjust_pure_ 阅读全文

posted @ 2023-11-30 21:17 wjbk 阅读(12) 评论(0) 推荐(0) 编辑

2023年10月31日

docker部署服务

摘要: 1、切换到指定目录 cd /MarkingPlatform/app 2、修改yaml文件里面的image版本 vim docker-compose.yaml 3、重启服务 docker-compose up -d 阅读全文

posted @ 2023-10-31 20:31 wjbk 阅读(2) 评论(0) 推荐(0) 编辑