- 博客(5)
- 收藏
- 关注
原创 mybatisplus打印SQL语句
参考链接:https://blog.csdn.net/m0_58680865/article/details/124485538。配置文件为application.yml格式。
2023-09-26 14:17:30
278
原创 Command line is too long
参考链接:https://blog.csdn.net/keyboard_/article/details/127722234。
2023-09-26 14:10:50
43
原创 springboot集成Junit在执行测试类的时候提示Failed to resolve org.junit.platform:junit-platform-launcher:1.7.2
【代码】springboot集成Junit在执行测试类的时候提示Failed to resolve org.junit.platform:junit-platform-launcher:1.7.2。
2023-08-15 15:50:32
383
原创 StringBuffer 和 StringBuilder的区别
1、线程安全StringBuffer:线程安全;StringBuilder:线程不安全。因为 StringBuffer 的所有公开方法都是 synchronized 修饰的。2、缓冲区StringBuffer 代码片段:private transient char[] toStringCache;@Overridepublic synchronized String toString() { if (toStringCache == null) { toString
2022-03-04 14:08:41
53
原创 判断条件为字符串,If语句转Enum枚举
If语句// 原始代码String tableName = pointArr[0].substring(0, 2).toUpperCase();if("WH".equals(tableName)){ setData(x.getWH(), address, pdatetime, value);}if("YC".equals(tableName)){ setData(x.getYC(), address, pdatetime, value);}if("YK".equals(tabl
2022-03-04 11:16:34
341
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人