摘要:
未找到原因 最后的解决办法:没有使用 jpa 自带的 CrudRepository save 方法,而是单独写了一个 insert 语句,然后id 每次传个时间戳 System.currentTimeMillis() @Transactional @Modifying @Query(value = 阅读全文
posted @ 2024-10-31 17:25
贾树丙
阅读(242)
评论(0)
推荐(0)
摘要:
优化 join on性能,解决联表查询慢的问题 这里只提供一种方式啊,就是如果连表有查询条件,那就先把条件查了,然后再连表,这个很有用 比如:pub_user1 与 pub_user2 有相同的字段 user_id 直接这么写会多查询很多数据 SELECT a.user_id, a.user_nam 阅读全文
posted @ 2024-10-31 17:18
贾树丙
阅读(76)
评论(0)
推荐(0)
摘要:
在Java 8中,如果你想要将一个Map的条目每10个分为一组,你可以使用流(Streams)来实现这一功能。这里是一个例子,假设我们有一个Map<Integer, String>,我们想要将其每10个元素分为一组。 首先,我们需要将Map的entrySet()转换为流,然后使用流的操作来实现分组。 阅读全文
posted @ 2024-10-31 16:55
贾树丙
阅读(284)
评论(0)
推荐(0)
摘要:
org.springframework.webflow.execution.RequestContext HttpServletRequest request = (HttpServletRequest)context.getExternalContext().getNativeRequest(); 阅读全文
posted @ 2024-10-31 16:49
贾树丙
阅读(63)
评论(0)
推荐(0)
摘要:
正确 语法是th:style="${bingMoshi=='hei'?'color:#f8f8f2;':'color:#3e3e3e;'} + ${bingFontSize != null ?'font-size:'+ bingFontSize +';':''} + ${bingLineHeight 阅读全文
posted @ 2024-10-31 16:43
贾树丙
阅读(229)
评论(0)
推荐(0)

浙公网安备 33010602011771号