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

先检查数据库表有没有主键,有才行;

然后检查有没有以下几行:

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

 实现效果:

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