分布式锁和数据库事务在并发情况下的问题 模拟业务场景: @Transactional(rollbackFor = Exception) public Integer update(Integer id) { if (!redisTemplate.opsForValue()