1

我目前正在使用 mybatis 生成 java 文件。问题是我需要本地库才能访问我的数据库。我将如何使用当前插件处理这个问题?

这是我的 pom 的样子:

<plugin>
    <groupId>org.mybatis.generator</groupId>
    <artifactId>mybatis-generator-maven-plugin</artifactId>
    <version>1.3.1</version>
    <executions>
      <execution>
        <id>Generate MyBatis Artifacts</id>
        <goals>
          <goal>generate</goal>
        </goals>
      </execution>
    </executions>
    <dependencies>
      <dependency>
        <groupId>mysql</groupId>
        <artifactId>mysql-connector-java</artifactId>
        <version>5.1.6</version>
      </dependency>
      <dependency>
        <groupId>package.needs.native</groupId>
        <artifactId>needs-native</artifactId>
        <version>1.2.3</version>
      </dependency>
    </dependencies>
  </plugin>
4

0 回答 0