RoleMapper.deleteRole attempted to return null from a method with a primitive return type (int).

旧城等待, 2023-05-30 09:09 209阅读 0赞

sprinboot出现错误:
RoleMapper.deleteRole attempted to return null from a method with a primitive return type (int).

这是一个非常低级的错误,粗心马大哈!具体错误看图:
在这里插入图片描述对于这种问题,绑定异常极大可能就是在mapper接口、以及mapper.xml中出错。经过我仔细的检查代码,发现了问题:
在这里插入图片描述
真的是无语!!!select写多了。

发表评论

表情:
评论列表 (有 0 条评论,209人围观)

还没有评论,来说两句吧...

相关阅读