SpringCloud frame structures during error Failed to execute goal org.mybatis.generator: mybatis-generator-maven-plugin

[ERROR] Failed to execute goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.7:generate (default-cli) on project fight-service: Execution default-cli of goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.7:generate failed: An API incompatibility was encountered while executing org.mybatis.generator:mybatis-generator-maven-plugin:1.3.7:generate: java.lang.NoSuchMethodError: org.mybatis.generator.internal.util.ClassloaderUtility.getCustomClassloader(Ljava/util/Collection;)Ljava/lang/ClassLoader;

  • When building Spring cloud framework integrates mybatis but there was an error in the use of the above mybatis reverse engineering time, until I noticed that the console sentenceHere Insert Picture Description
  • It may be noted here required mybatis-generator-maven-plugin library version 1.3.7, but the version that is inconsistent with my jar package so in the Moduls version 1.3.7 will be changed after a successful run.
  • Here Insert Picture Description
    -END-

Guess you like

Origin blog.csdn.net/qq_38404698/article/details/93730597