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

评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值