摘要: 编写一个 .sh 脚本来检索指定文件夹下的所有 Excel 文件,并根据关键字进行处理。以下是一个详细的示例脚本,包括查找文件、转换为 CSV、搜索关键字、记录结果,并将符合条件的文件移动到指定目录。 脚本示例 #!/bin/bash # 定义要搜索的文件夹和关键字 FOLDER_PATH="/pa 阅读全文
posted @ 2024-12-20 16:46 FY丶 阅读(29) 评论(0) 推荐(0) 编辑
摘要: 最近线上系统高并发时发生了两次性能问题,总结了一下共享给大家,避免日后再发生此类问题。1. 现象:redis服务器cpu负荷很高,响应慢原因:代码中使用keys命令查询导致redis整体扫描对策:禁止使用keys命令2.现象:获取数据库连接超时,导致应用服务响应慢,甚至崩溃原因:数据库连接池的最大连 阅读全文
posted @ 2023-03-09 09:34 FY丶 阅读(103) 评论(0) 推荐(0) 编辑
摘要: 在interceptor包下创建ApiInterceptor和WebConfig ApiInterceptor package com.media.weappapi.interceptor; import com.media.common.po.config.TCmsSite; import com 阅读全文
posted @ 2023-03-03 15:04 FY丶 阅读(22) 评论(0) 推荐(0) 编辑
摘要: 将list存到json中后,json返回的内容是[{"morpherRegistry":{},"dynaClass":{"dynaProperties":[{"indexed":false,"mapp 这种的 解决办法 List<EsPubCategory> lists = esPubMedia.g 阅读全文
posted @ 2023-02-23 19:43 FY丶 阅读(27) 评论(0) 推荐(0) 编辑
摘要: StringBuilder sb=new StringBuilder(); sb.append(xxx).append(","); //去掉最后一个,sb.deleteCharAt(sb.length()-1); 阅读全文
posted @ 2023-02-23 16:53 FY丶 阅读(12) 评论(0) 推荐(0) 编辑
摘要: pom.xml下新增 <!-- 软件环境参数 --><parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.2.8.RELE 阅读全文
posted @ 2023-02-17 16:24 FY丶 阅读(101) 评论(0) 推荐(0) 编辑
摘要: 有可能是数据库服务器的磁盘空间满了 阅读全文
posted @ 2023-02-14 19:33 FY丶 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 在启动类里加 @SpringBootApplication(exclude = RedisAutoConfiguration.class)@MapperScan("com.news.repthe.*.mapper")@EnableTransactionManagement@ComponentScan 阅读全文
posted @ 2023-02-14 19:31 FY丶 阅读(27) 评论(0) 推荐(0) 编辑
摘要: service crond start //启动服务service crond stop //关闭服务service crond restart //重启服务service crond reload //重新载入配置service crond status //查看服务状态 crontab -u / 阅读全文
posted @ 2022-10-17 10:32 FY丶 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 签名生成方法如下: 对所有请求参数(不包括 signature 参数),按照参数名ASCII码表升序顺序排序。如:foo=1, bar=2, foo_bar=3, baz=4 排序后的顺序是 bar=2, baz=4, foo=1, foobar=3。 将排序好的参数名和参数值构造成字符串,格式为: 阅读全文
posted @ 2022-09-22 11:28 FY丶 阅读(1282) 评论(0) 推荐(0) 编辑