springBoot +Mybatis-generator代码生成器报错 No plugin found for prefix 'mybatis-generator' in the current

springBoot +Mybatis-generator配置过程中出现错误

springBoot +Mybatis-generator代码生成器报错 No plugin found for prefix 'mybatis-generator' in the current

 原因:在配置pom.xml文件的过程中忘记配置mybatis-generator插件导致

解决方法:在pom.xml文件中添加mybatis-generator插件配置

--mybatis-generator插件
<plugin>
   <groupId>org.mybatis.generator</groupId>
   <artifactId>mybatis-generator-maven-plugin</artifactId>
   <version>1.3.7</version>
--mybatis-generator配置文件的路径
   <configuration>
      <configurationFile>${basedir}/src/main/resources/generator/generatorConfig.xml</configurationFile>
      <overwrite>true</overwrite>
      <verbose>true</verbose>
   </configuration>
   <dependencies>
      <dependency>
         <groupId>mysql</groupId>
         <artifactId>mysql-connector-java</artifactId>
         <version>5.1.46</version>
      </dependency>
   </dependencies>
</plugin>