摘要:
上篇讲了如何使用Mybatis Generator生成代码,但是再生成过程中,往往出现一大堆的Example类,而这些Example中的很多方法我们是不需要用到的,因此在生成之前我们可以添加如下代码: 右击项目 >run as >maven build就OK啦! 阅读全文
摘要:
1.新建Maven项目: file >others >maven >maven project 2.往pom.xml中添加插件: 如果不清楚添加代码位置,也可以 选中pom文件 右键--》添加插件 --》弹出对话框 --》点击select --》 选择mybatis-generator-maven- 阅读全文