使用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;