会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
pinenuts
博客园
首页
新随笔
联系
订阅
管理
2025年5月9日
Springboot3配置JPA多数据源
摘要: 一、连接配置 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)
2024年2月20日
windows系统gitbash设置备忘
摘要: "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)
2023年11月10日
redis-cli批量scan删除
摘要: 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)
2023年5月5日
Java正则提取中间段文本
摘要: 核心正则 开始字符串(.*)结束字符串 示例 String a = "【权益到账提醒】尊敬的客户,您好!您已获得权益礼包,【兑换码】:11223344。请妥善保管好您的兑换码,一经兑换,立即失效。"; Matcher matcher = Pattern.compile("【兑换码】:(.*)。请妥善
阅读全文
posted @ 2023-05-05 09:22 pinenuts
阅读(161)
评论(0)
推荐(0)
2022年7月22日
【已解决】Exception in thread "main" java.lang.ClassCastException: com.google.gson.internal.LinkedTreeMap cannot be cast to
摘要: 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)
2022年7月14日
[问题解决]idea junit5 failed to resolve org.junit.platform
摘要: 问题 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)
公告