摘要: 实际上还是有很多不确定的地方,先记录下来,希望后续如果碰到类似的情况可以提供思路 原理图如下,使用esp32-c3的GPIO0和GPIO1作为I2C输出,MAX6955的O0~O7、O10~O17连接到1088AS 先上代码: #include <Arduino.h> #include <Wire. 阅读全文
posted @ 2026-04-07 22:41 Jackie_JK 阅读(25) 评论(0) 推荐(0)
摘要: 依赖mybatis 分区获取mapper public interface PartitionsMapper { @Select("SELECT EXISTS(SELECT 1 FROM information_schema.partitions WHERE table_schema = #{tab 阅读全文
posted @ 2026-02-08 12:48 Jackie_JK 阅读(14) 评论(1) 推荐(0)
摘要: 备忘 @SuppressWarnings("ResultOfMethodCallIgnored") public static void main(String[] args) { FileLock lock; Paths.get(LOCK_PATH).toFile().mkdir(); try ( 阅读全文
posted @ 2025-07-01 02:44 Jackie_JK 阅读(17) 评论(0) 推荐(0)
摘要: 依赖: 需要指定espressif32的版本为6.5.0,否则会出现Guru Meditation Error: Core 0 panic'ed (Store access fault). Exception was unhandled. 参考 Guru Meditation Error: Core 阅读全文
posted @ 2025-05-10 18:43 Jackie_JK 阅读(1303) 评论(0) 推荐(0)
摘要: 这个是因为jdk8的一个bug引起的,见 [JDK-8164963] InvalidAlgorithmParameterException prime size issue after JDK upgrade with JSCH libraries - Java Bug System 使用jsch0 阅读全文
posted @ 2025-04-25 23:19 Jackie_JK 阅读(313) 评论(0) 推荐(0)
摘要: 备忘。 public class CircularCounter { private final AtomicInteger counter; private final int maxValue; public CircularCounter(int initialValue, int maxVa 阅读全文
posted @ 2025-04-13 00:25 Jackie_JK 阅读(30) 评论(0) 推荐(0)
摘要: 此方法同样兼容jdk21的虚拟线程。 需要Guava库,或可利用其他缓存库代替: @Slf4j @NoArgsConstructor public class AsyncResultLock<K> { private final Cache<K, Thread> lockMap = CacheBui 阅读全文
posted @ 2025-04-13 00:22 Jackie_JK 阅读(70) 评论(0) 推荐(0)
摘要: 备忘。 /* * 前缀树 * key是纯数字的字符串 * */ @SuppressWarnings({"unchecked", "rawtypes"}) public class NumericStringTireMap<T> { public static class Node<T> { priv 阅读全文
posted @ 2025-02-20 22:18 Jackie_JK 阅读(20) 评论(0) 推荐(0)
摘要: 读取文件通过Easyexcel实现。基于该方法可以在导入大文件时实时回显校验结果,并在最后时决定是否回滚。 主逻辑: @PostMapping(value = "/import", consumes = MediaType.MULTIPART_FORM_DATA_VALUE) @Operation( 阅读全文
posted @ 2025-02-20 22:16 Jackie_JK 阅读(37) 评论(0) 推荐(0)
摘要: @Service public class ReportConcurrentService { @Autowired private RedisTemplate redisTemplate; @Autowired private RedisConfig redisConfig; @Value("${ 阅读全文
posted @ 2024-12-07 00:17 Jackie_JK 阅读(79) 评论(0) 推荐(0)