您的位置:首页 > 其它

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

2019-04-04 20:22 603 查看

报错: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中配置写错了标签(概率极大)

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐