美文网首页
MyBatis Generator with Maven

MyBatis Generator with Maven

作者: 末日之锤 | 来源:发表于2017-08-08 10:30 被阅读0次

基本上按照官网的操作就行,有些坑的地方提醒下:

  1. pom.xml 加入plugins后execution报错,Plugin execution not covered by lifecycle configuration.
    解决办法,plugins外层增加pluginManagement

  2. 如何使用?

  • 命令行
    mvn mybatis-generator:generate
  • 菜单操作
    * 右键--》run as --》 maven bulid --》弹出对话框 --》在goals中输入mybatis-generator:generate
    * 点击select --》选择你的mybatis插件 --》apply --》run

相关文章

网友评论

      本文标题:MyBatis Generator with Maven

      本文链接:https://www.haomeiwen.com/subject/pnzzlxtx.html