报错:attempted to return null from a method with a primitive return type (int)

报错:attempted to return null from a method with a primitive return type (int)

报错:attempted to return null from a method with a primitive return type (int)

为了这个问题折腾了1个多小时,真的很无语

产生这样的问题遇到过两种情况:

1.某个事务没有提交,导致一直无法更新

查看事务
select * from information_schema.INNODB_TRX;
查看锁
select * from information_schema.INNODB_LOCKS;
查看锁等待
select * from information_schema.INNODB_LOCK_WAITS;
kill掉对应 thread 就好 (开发环境的时候)

2.update语句用了@Select注解,或者是在XML中配置写错了标签(概率极大)

你可能感兴趣的:(报错:attempted to return null from a method with a primitive return type (int))