1. 程式人生 > >MBG逆向工程報錯:generate failed: Exception getting JDBC Driver: com.mysql.jdbc.Driver

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

修改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>