MBG逆向工程报错:generate failed: Exception getting JDBC Driver: com.mysql.jdbc.Driver

时间:2021-10-13 08:56:59

修改pom文件,逆向工程如下:

<!-- 逆向工程 -->
<plugin>
  <groupId>org.mybatis.generator</groupId>
  <artifactId>mybatis-generator-maven-plugin</artifactId>
  <version>1.3.7</version>
<dependencies>
  <dependency>
    <groupId>mysql</groupId>
    <artifactId>mysql-connector-java</artifactId>
    <version>5.1.42</version>
  </dependency>
</dependencies>
</plugin>