Mybatis Generator(代碼生成器)只有insert方法

先檢查數據庫表有沒有主鍵,有才行;

然後檢查有沒有以下幾行:

enableSelectByPrimaryKey="true"
enableUpdateByPrimaryKey="true"
enableDeleteByPrimaryKey="true"

 實現效果:

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