上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 46 下一页
摘要: 查看日志文件指定内容 cat user.log | grep 'userId=88888888' 查看日志文件指定内容上下10行 grep -C 10 'userId=88888888' user.log //-B上面 -A下面 追踪最近10行内容并实时显示接下来的日志 tail -10f user 阅读全文
posted @ 2023-05-25 11:06 白玉神驹 阅读(100) 评论(0) 推荐(0)
摘要: nacos中配置环境参数 env: es: dev 注解中添加参数信息 @Data @Document(indexName = "#{@envEs}") public class EsInfo{ private Long id; } 添加配置文件获取配置数据 @Component public cl 阅读全文
posted @ 2023-05-23 17:19 白玉神驹 阅读(169) 评论(0) 推荐(0)
摘要: 是否支持添加第二个内存条 确认电脑最大支持多少内存 cmd命令查询 wmic memphysical get maxcapacity 17777216/1024约等于16G 确认电脑支持的内存条的频率 可以根据电脑主板上查看,也可以从电脑右键属性中查看,一般i5之后的都支持1600,1866MHz 阅读全文
posted @ 2023-05-22 11:11 白玉神驹 阅读(43) 评论(0) 推荐(0)
摘要: 背景 每天要打开很多应用,包括扫码登录的,账号密码登录的,需要启动运行脚本启动的,因此每天重启会很麻烦 方案一 macbook:如果之前使用windows内存8G就够用,那么推荐更换mac air; 如果之前使用windows内存在16G和32G才够用,推荐mac pro 方案二 在笔记本支持双通道 阅读全文
posted @ 2023-05-17 08:39 白玉神驹 阅读(113) 评论(0) 推荐(0)
摘要: ElasticSearch组合多查询(must, should, must_not, filter) 举个例子 if (StringUtils.isNotEmpty(goodsSpu.getCategoryId())){ filterBuilder.must(QueryBuilders.wildca 阅读全文
posted @ 2023-05-11 15:41 白玉神驹 阅读(81) 评论(0) 推荐(0)
摘要: 重置密码 sudo passwd root 阅读全文
posted @ 2023-05-07 22:13 白玉神驹 阅读(25) 评论(0) 推荐(0)
摘要: 查询order_id重复出现两次以上 select order_id from t_test where 1=1 GROUP BY order_id HAVING count(order_id ) > 1; 查询order_id,phone重复出现两次以上 select * from t_test 阅读全文
posted @ 2023-05-06 16:37 白玉神驹 阅读(65) 评论(0) 推荐(0)
摘要: 收集其中两个字段 public Map<Long, String> getIdNameMap(List<Account> accounts) { return accounts.stream().collect(Collectors.toMap(Account::getId, Account::ge 阅读全文
posted @ 2023-05-04 20:30 白玉神驹 阅读(135) 评论(0) 推荐(0)
摘要: 方式一 import org.springframework.cglib.beans.BeanMap; BeanMap.create(entityObj); 方式二 import com.alibaba.fastjson.JSONObject; //方式1、强转为JSONObject JSONObj 阅读全文
posted @ 2023-04-27 17:24 白玉神驹 阅读(422) 评论(0) 推荐(0)
摘要: 1. file–>setting–>Editor–>General–>Auto Import,去掉勾选即可。 2. file->setting->Editor->CodeStyle->Java->Imports->设置上限 阅读全文
posted @ 2023-04-27 13:46 白玉神驹 阅读(2554) 评论(0) 推荐(0)
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 46 下一页