wjbk

导航

2023年4月24日

linux 查看文件夹和子文件夹下的文件个数

摘要: 1. 查看文件夹下的文件个数(当前目录的文件和子文件夹的文件数) find ./ -type f | wc -l 阅读全文

posted @ 2023-04-24 17:30 wjbk 阅读(145) 评论(0) 推荐(0)

mongoDB 指定某些字段查询

摘要: Criteria criteria = Criteria.where("_id").is(); Query q = Query.query(criteria); q.fields().include("_id").include("name").include("score"); Student s 阅读全文

posted @ 2023-04-24 15:05 wjbk 阅读(282) 评论(0) 推荐(0)

mysql 解析json字符串里的某项值

摘要: select JSON_EXTRACT(json字段,'$.name') from table 阅读全文

posted @ 2023-04-24 10:45 wjbk 阅读(21) 评论(0) 推荐(0)

2023年4月18日

linux zip打包命令

摘要: //打包不包含父层级目录cd /path zip -q -r /home/zip/data.zip ./* //打包包含父层级目录zip -q -r /home/zip/data.zip /path/data 阅读全文

posted @ 2023-04-18 15:07 wjbk 阅读(159) 评论(0) 推荐(0)

2023年3月28日

提示文字被遮盖

摘要: 一、在对应属性上加transfer搞定 <Tooltip :transfer="true" :content="tooltipContent">示例</Tooltip>二、render: (h, params) => { let texts = ''; //表格列显示文字 if (params.ro 阅读全文

posted @ 2023-03-28 10:43 wjbk 阅读(56) 评论(0) 推荐(0)

ftpClient传输中文乱码解决

摘要: 在ftpClient.connect之前加上下面代码 ftpClient.setControlEncoding("GBK"); 阅读全文

posted @ 2023-03-28 10:38 wjbk 阅读(132) 评论(0) 推荐(0)

FtpClient.storeFile返回false解决方法

摘要: boolean b = ftpClient.storeFile(fileName, inputStream); //判断b,如果没成功可能需要对中文编码 if(!b){ b = ftpClient.storeFile(new String(fileName.getBytes("UTF-8"),"is 阅读全文

posted @ 2023-03-28 10:34 wjbk 阅读(1164) 评论(0) 推荐(0)

2023年3月6日

java8 分组排序

摘要: //先根据姓名分组再根据分数排序 Map<String, List<Student>> map1 = listAll.stream().collect( Collectors.groupingBy(Student::getName, HashMap::new, Collectors.collecti 阅读全文

posted @ 2023-03-06 20:15 wjbk 阅读(297) 评论(0) 推荐(0)

2023年1月18日

mysql替换字段指定字符

摘要: 1、使用REPLACE()函数 UPDATE table SET field = REPLACE (field,'old_string','new_string') 阅读全文

posted @ 2023-01-18 14:16 wjbk 阅读(66) 评论(0) 推荐(0)

2022年12月19日

java8特性-list集合根据多个字段去重

摘要: //按专业和年级去重,专业和年纪一样时表示重复对象 List<Class> distinctClass = classList.stream().collect(Collectors.collectingAndThen(Collectors.toCollection(() -> new TreeSe 阅读全文

posted @ 2022-12-19 17:02 wjbk 阅读(1589) 评论(0) 推荐(0)