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

相關文章
相關標籤/搜索