使用mybatis-generator-maven-plugin自动生成实体类

使用mybatis-generator-maven-plugin的最新版本1.4.0和1.4.1自动生成实体类,分别遇到了下面的错误,没有找到最新版本用什么方法替代了老方法,所以回退到1.3.7成功生成了实体类;

[ERROR] Failed to execute goal org.mybatis.generator:mybatis-generator-maven-plugin:1.4.0:generate (default-cli) on project springboot: Execution default-cli of goal org.mybatis.generator:mybatis-generator-maven-plugin:1.4.0:generate failed: A required class was missing while executing org.mybatis.generator:mybatis-generator-maven-plugin:1.4.0:generate: org/mybatis/generator/api/dom/xml/Element

[ERROR] Failed to execute goal org.mybatis.generator:mybatis-generator-maven-plugin:1.4.1:generate (default-cli) on project springboot: Execution default-cli of goal org.mybatis.generator:mybatis-generator-maven-plugin:1.4.1:generate failed: An API incompatibility was encountered while executing org.mybatis.generator:mybatis-generator-maven-plugin:1.4.1:generate: java.lang.NoSuchMethodError: org.mybatis.generator.config.Context.getJdbcConnectionConfiguration()Lorg/mybatis/generator/config/JDBCConnectionConfiguration;

看下你的代码,模版代码

我上传到GitHub了,麻烦帮忙看看,目前使用1.3.7能生成实体类
https://github.com/yannfeii/springbootDemo

传到gitee上呗。。。github打开下载不下来,慢的不行

我这边不能用gitee;麻烦你看看要用最新版本是需要改什么配置