摘要: 一、连接配置 spring: datasource: url: "jdbc:mysql://localhost/first" username: "dbuser" password: "dbpass" driver-class-name: com.mysql.cj.jdbc.Driver secon 阅读全文
posted @ 2025-05-09 16:43 pinenuts 阅读(5) 评论(0) 推荐(0)
摘要: "Filename too long" 错误 git config --global core.longpaths true gitbash设置本地代理 git config --global http.proxy "http://127.0.0.1:1080" git config --globa 阅读全文
posted @ 2024-02-20 14:32 pinenuts 阅读(11) 评论(0) 推荐(0)
摘要: redis-cli命令行删除数据 最近因为需要对redis部分存量数据执行删除,因为存量数据量比较大且正在提供服务,需要使用scan扫描,删除的时候需要判断存储的业务状态对于status为0的删除,记录一下处理命令,用于备忘 ./redis-cli -c -h 172.x.x.x -p xxxx - 阅读全文
posted @ 2023-11-10 15:42 pinenuts 阅读(542) 评论(0) 推荐(0)
摘要: 核心正则 开始字符串(.*)结束字符串 示例 String a = "【权益到账提醒】尊敬的客户,您好!您已获得权益礼包,【兑换码】:11223344。请妥善保管好您的兑换码,一经兑换,立即失效。"; Matcher matcher = Pattern.compile("【兑换码】:(.*)。请妥善 阅读全文
posted @ 2023-05-05 09:22 pinenuts 阅读(161) 评论(0) 推荐(0)
摘要: GSON TypeToken 动态泛型 一、错误描述 Exception in thread "main" java.lang.ClassCastException: com.google.gson.internal.LinkedTreeMap cannot be cast to com.xxx 二 阅读全文
posted @ 2022-07-22 11:43 pinenuts 阅读(2375) 评论(0) 推荐(0)
摘要: 问题 idea 无法运行junit5单元测试用例,错误提示: Exception: intellij failed to resolve org.junit.platform:junit-platform-launcher:1.7.0 解决办法: 方式一 : 添加pom依赖 <dependencie 阅读全文
posted @ 2022-07-14 15:07 pinenuts 阅读(1569) 评论(0) 推荐(0)