![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java学习过程
kmmmmmnn
实现需求,提升技术!
展开
-
Mybatis用 #{} 查不到数据
Mybatis用 #{} 查不到数据查不出数据的代码<select id="selectAllMatchActivity" parameterType="map" resultMap="BaseResultMap"> select a.id id, from tbl_activity a join tbl_user u1 on a.owner = u1.id join tbl_user u2 on a.create_by =原创 2021-01-21 11:25:22 · 798 阅读 · 0 评论 -
为什么虚假唤醒可以通过 while避免 ,if却不能呢?
虚假唤醒<spurious wakeups>虚假唤醒 Spurious wakeiups 指 :在线程的 等待/唤醒 的过程中,等待的线程被唤醒后,在条件不满足的情况依然继续向下运行了。Java官方给的Api 的代码块如下synchronized (obj) { while (<condition does not hold> and <timeout not exceeded>) { //.....省略.......原创 2020-11-20 18:20:51 · 1761 阅读 · 5 评论