摘要:
方法/步骤1登录mysql,查看锁记录等待时间:SHOW VARIABLES LIKE 'innodb_lock_wait_timeout';等待时间是50秒,2把表中id=1的数据加锁,另一个事务对记录修改:SELECT * FROM chengshi WHERE id=1 FOR UPDATE; 阅读全文
posted @ 2020-11-22 16:14
DiligentCoder
阅读(2215)
评论(0)
推荐(0)
摘要:
@Component public class MatchLogUtil { @Autowired private OtcMatchLogMapper otcMatchLogMapper; private static MatchLogUtil matchLogUtil; @PostConstruc 阅读全文
posted @ 2020-11-22 14:45
DiligentCoder
阅读(186)
评论(0)
推荐(0)

浙公网安备 33010602011771号