解决办法:https://www.jianshu.com/p/789b33b5943e
BUG复现满足以下条件可触发:
1.在RedisConfig开启Redis事务
redisTemplate.setEnableTransactionSupport(true);
2.业务中开启事务
@Transactional
3.同一个业务下用生产多点id就报这个错误了
Cannot invoke "java.lang.Long.longValue()" because the return value of "org.springframework.data.redis.core.ValueOperations.increment(Object, long)" is null
Cannot invoke "java.lang.Long.longValue()" because the return value of "org.springframework.data.redis.core.ValueOperations.increment(Object, long)" is null`
解决办法:https://www.jianshu.com/p/789b33b5943e