异常:Mapper method ... attempted to return null from a method with a primitive return type (int)."/>
异常:Mapper method ... attempted to return null from a method with a primitive return type (int).
当我运行异常出现这种问题的时候,由于在mpper配置的文件中,sql 语句 和 sql标签没有对应上
如上图,这里是添加的语句,而标签的语句是select ,没有对应上所以报错。
正确解决:如下图,这里是添加操作,所以将标签select 改为 insert标签
更多推荐
异常:Mapper method ... attempted to return null from a method with a primitive ret
发布评论