问答详情
源自:2-4 Mybatis自动生成器使用方式

生成失败!!!!!!!

Failed to execute goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.5:generate (default-cli) on project miaosha: Execution default-cli of goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.5:generate failed: An API incompatibility was encountered while executing org.mybatis.generator:mybatis-generator-maven-plugin:1.3.5:generate: java.lang.NoSuchMethodError: org.mybatis.generator.internal.util.ClassloaderUtility.getCustomClassloader(Ljava/util/List;)Ljava/lang/ClassLoader;这是什么问题

提问者:lcl_one 2019-01-29 20:41

个回答

  • 慕斯5408319
    2019-01-30 18:06:38

    <dependency>
        <groupId>mysql</groupId>
        <artifactId>mysql-connector-java</artifactId>
        <version>${mysql.version}</version>
    </dependency>

    你把pom文件中的插件里边的mysql依赖的版本,改成我下面的表达式

    ${mysql.version}