mybatis generator自动生成代码时 只生成了insert 而没有其他的

问:大侠们为什么我用mybatis generator自动生成代码时只生成了insert 而没有其他的答:表没设置主键吧。 别的select\update都是根据主键来的。没有就不生成了

    推荐阅读