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

sprinboot出現錯誤:
RoleMapper.deleteRole attempted to return null from a method with a primitive return type (int).

這是一個非常低級的錯誤,粗心馬大哈!具體錯誤看圖:
在這裏插入圖片描述對於這種問題,綁定異常極大可能就是在mapper接口、以及mapper.xml中出錯。經過我仔細的檢查代碼,發現了問題:
在這裏插入圖片描述
真的是無語!!!select寫多了。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章