2025年8月15日

mysql如何查询重复的数据,去重

摘要: SELECT column1, column2, COUNT(*) FROM table_name GROUP BY column1, column2 HAVING COUNT(*) > 1; -- 假设id是主键或唯一标识DELETE t1 FROM pv_meter_daily_power t1 阅读全文

posted @ 2025-08-15 14:24 yebinghuai-qq-com 阅读(18) 评论(0) 推荐(0)

ModbusDecoderNetty,crc16modbus

摘要: /** * *ModbusDecoderNetty * */ @Slf4j public class ModbusDecoderNetty extends ByteToMessageDecoder { @Override protected void decode(ChannelHandlerCon 阅读全文

posted @ 2025-08-15 10:13 yebinghuai-qq-com 阅读(8) 评论(0) 推荐(0)

2025年8月13日

禁止windows10升级到windows11

摘要: 使用Windows设置 按 Win+I 打开Windows设置页面。 单击 “更新和安全” > “Windows更新”,然后在右侧详情页中选择 “暂停更新7天” 选项即可在此后7天内关闭Windows更新 使用注册表编辑器 按 Win+R 输入 regedit 并按 Enter 键打开注册表编辑器。 阅读全文

posted @ 2025-08-13 14:08 yebinghuai-qq-com 阅读(549) 评论(0) 推荐(0)

2025年8月4日

java parseShort parseInt

摘要: private static short parseShort(byte[] data, int offset) { return (short) ((data[offset] & 0xFF) << 8 | (data[offset + 1] & 0xFF)); } private static i 阅读全文

posted @ 2025-08-04 14:11 yebinghuai-qq-com 阅读(16) 评论(0) 推荐(0)

2025年7月31日

maven打包命令mvn package出错java.lang.IllegalAccessError: class lombok.javac.apt.LombokProcessor (in unnamed module @0x5db867ee) cannot access class com.sun.tools.javac.processing.JavacProcessingEnvironment

摘要: 解决方法: 降级 JDK 到 8(最彻底的解决方案,避免模块化问题): 若项目允许,切换至 JDK 8(不涉及模块系统,Lombok 兼容性最佳)。 阅读全文

posted @ 2025-07-31 15:44 yebinghuai-qq-com 阅读(113) 评论(0) 推荐(0)

2025年6月25日

在Linux上运行Vue打包后的文件,对应nginx配置

摘要: nginx.conf文件内容 #user nobody; worker_processes 4; #error_log logs/error.log; #error_log logs/error.log notice; #error_log logs/error.log info; #pid log 阅读全文

posted @ 2025-06-25 18:46 yebinghuai-qq-com 阅读(14) 评论(0) 推荐(0)

2025年6月18日

java定时任务,一次性任务

摘要: public class OneTimeTask { public static void main(String[] args) { Timer timer = new Timer(); TimerTask task = new TimerTask() { @Override public voi 阅读全文

posted @ 2025-06-18 13:56 yebinghuai-qq-com 阅读(19) 评论(0) 推荐(0)

2025年6月12日

解决SpringBoot整合Shiro 跨域问题及前端报错401问题解决

摘要: 111111 import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Component; import javax.servlet.*; import javax.servlet.http.HttpServle 阅读全文

posted @ 2025-06-12 14:16 yebinghuai-qq-com 阅读(73) 评论(0) 推荐(0)

2025年3月28日

centos使用tcpdump端口抓包保存成文件在当前目录

摘要: tcpdump -i eth0 port 8060 > dfilesaved.pcapng 2>&1 以上这条指命生成的文档windows的Wireshark打不开 tcpdump -i eth0 port 8060 -w dfilesaved.pcapng 以上这条指命生成的文档windows的W 阅读全文

posted @ 2025-03-28 17:11 yebinghuai-qq-com 阅读(47) 评论(0) 推荐(0)

2025年2月25日

vue3 rules表单验证

摘要: 表单头:rules="rules" 提交事件里增加判断 dataFormRef.value.validate((valid: boolean) => { if (!valid) { return false; } } 具体的规则 const rules = ref({ gatewayMac: [ { 阅读全文

posted @ 2025-02-25 19:26 yebinghuai-qq-com 阅读(148) 评论(0) 推荐(0)

导航