Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用这个插件报错,问下这个问题怎么解决? #6

Closed
leizime opened this issue Jun 11, 2017 · 4 comments
Closed

使用这个插件报错,问下这个问题怎么解决? #6

leizime opened this issue Jun 11, 2017 · 4 comments

Comments

@leizime
Copy link

leizime commented Jun 11, 2017

Failed to execute goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.5:generate (default-cli) on project lepai: Execution default-cli of goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.5:generate failed: Cannot instantiate object of type com.itfsw.mybatis.generator.plugins.BatchInsertPlugin -> [Help 1]

@itfsw
Copy link
Owner

itfsw commented Jun 12, 2017

你没有引入插件啊,mybatis-generator-maven插件依赖应该是配置在插件配置里的

<!-- mybatis-generator 自动代码插件 -->
            <plugin>
                <groupId>org.mybatis.generator</groupId>
                <artifactId>mybatis-generator-maven-plugin</artifactId>
                <version>1.3.5</version>
                <configuration>
                    <!-- 配置文件 -->
                    <configurationFile>src/main/resources/mybatis-generator.xml</configurationFile>
                    <!-- 允许移动和修改 -->
                    <verbose>true</verbose>
                    <overwrite>true</overwrite>
                </configuration>
                <dependencies>
                    <!-- jdbc 依赖 -->
                    <dependency>
                        <groupId>mysql</groupId>
                        <artifactId>mysql-connector-java</artifactId>
                        <version>5.1.40</version>
                    </dependency>
                    <dependency>
                        <groupId>com.itfsw</groupId>
                        <artifactId>mybatis-generator-plugin</artifactId>
                        <version>1.0.11</version>
                    </dependency>
                </dependencies>
            </plugin>

@itfsw itfsw closed this as completed Jun 13, 2017
@MisterChangRay
Copy link

thank a lot

@qbmiller
Copy link

gradle 怎么引用

@itfsw
Copy link
Owner

itfsw commented Oct 11, 2018

@qbmiller 请参照issues#41

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants