Mybatis:Mapper method attempted to return null from a method

关键词

SpringMVC SSM Mybatis eclipsesegmentfault

报错内容

Mybatis:Mapper method attempted to return null from a method with a primitive return type (int)

缘由

Mapper.xml的标签用错了。。。(低级错误,轻喷。。。)
 
好比原本应该:
插入语句用<insert></insert>,更新语句用<update></update>,删除语句用<delete></delete>app

结果全用成<select></select>eclipse

解决

用回对应的标签就行。url

参考

Mybatis:Mapper method attempted to return null from a method with a primitive return type (int).net

相关文章
相关标签/搜索