mybatis-generator-gui 每次生成的文件要一层一层文件夹去找,好烦人,于是修改了生成的路径
1、修改 com.zzg.mybatis.generator.bridge.MybatisGeneratorBridge
把entity、dao、mapper xml 的生成路径都改成根路径
2、创建自己的 ShellCallback
去掉对 targetPackage 的路径追加
3、应用自己创建的 ShellCallback
这样就都再同一个目录下了
不得不说在改完这个问题后,被接口的魅力再一次折服,接口让代码完美的拥有了可塑性!!!