美文网首页我爱编程
Mybatis generator plugin IDEA使用的

Mybatis generator plugin IDEA使用的

作者: Faustest | 来源:发表于2018-03-01 19:50 被阅读0次

初用Mybatis generator plugin,自动生成pojo类和dao层接口的一个方便的插件。
我在idea中使用这个插件的时候,通过Maven project的plugin选择build之后之后, 报错

Failed to execute goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.2:generate (default-cli) on project mmall: configfile F:\xxxx\xxxx\xxx\generatorConfig.xml does not exist -> [Help 1]

遇到这个问题的人还挺多...这里路径错误原因与配置文件没关系,因为使用idea写xml文件的时候可能自动忽略了后缀名,导致明明文件存在,仍然报错,手动添加上.xml后缀即可构建成功。

相关文章

网友评论

    本文标题:Mybatis generator plugin IDEA使用的

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