02 2024 档案

摘要:尝试在left join on上多拼接,需要区分where的条件卡死限制。 https://www.modb.pro/db/131794 阅读全文
posted @ 2024-02-19 16:38 盘思动 阅读(241) 评论(0) 推荐(0) 编辑
摘要:可以在service中添加@lazy(true) 实测有效。例如: public class AService{ @Autowired @Lazy(true) private BService bService; } public class BService{ @Autowired @Lazy(t 阅读全文
posted @ 2024-02-01 17:39 盘思动 阅读(58) 评论(0) 推荐(0) 编辑
摘要:![](https://img2024.cnblogs.com/blog/1202393/202402/1202393-20240201173746660-1669565149.png) 阅读全文
posted @ 2024-02-01 17:37 盘思动 阅读(170) 评论(0) 推荐(0) 编辑
摘要:/** * 判断当前时间是否在"07:07~10:10"格式数据时间段内; * @param `timeStr` * @return */ private boolean isInTimeRange(String timeStr){ String[] parts = timeStr.split("[ 阅读全文
posted @ 2024-02-01 16:48 盘思动 阅读(14) 评论(0) 推荐(0) 编辑
摘要:如果你有一个名为 lists 的 List<ParamItem>,并且想要查找其中 id 为 3 的行,并获取对应的 value 值,可以使用 Java 8 引入的 Stream API 来实现。 下面是一个示例代码: import java.util.List; import java.util. 阅读全文
posted @ 2024-02-01 16:46 盘思动 阅读(27) 评论(0) 推荐(0) 编辑
摘要:String timeStr = "07:07~10:10"; String[] parts = timeStr.split("[~|:]");// 以正则格式来分割; System.out.println("____" + parts); for (String part : parts) { S 阅读全文
posted @ 2024-02-01 16:34 盘思动 阅读(32) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示