itfsw / mybatis-generator-plugin

Mybatis Generator 代码生成插件拓展,增加:查询单条数据插件(SelectOneByExamplePlugin)、MySQL分页插件(LimitPlugin)、数据Model链式构建插件(ModelBuilderPlugin)、Example Criteria 增强插件(ExampleEnhancedPlugin)、Example 目标包修改插件(ExampleTargetPlugin)、批量插入插件(BatchInsertPlugin)、逻辑删除插件(LogicalDeletePlugin)、数据Model属性对应Column获取插件(ModelColumnPlugin)、存在即更新(UpsertPlugin)、Selective选择插入更新增强插件(SelectiveEnhancedPlugin)、Table增加前缀插件(TableSuffixPlugin)、自定义注释插件(CommentPlugin)、增量插件(IncrementsPlugin)、查询结果选择性返回插件(SelectSelectivePlugin)、乐观锁插件(OptimisticLockerPlugin)、LombokPlugin等拓展。
Apache License 2.0
1.35k stars 398 forks source link

Not working via try to eclipse plugin #137

Open Ranbowong opened 3 years ago

Ranbowong commented 3 years ago

I installed the mybatis generator plugin in Eclipse, the release information of eclipse listed as below: Eclipse IDE for Enterprise Java Developers. Version: 2020-03 (4.15.0) Build id: 20200313-1211

Plugin details as below : MyBatis Generator 1.4.0.201911242214 org.mybatis.generator.feature.group mybatis.org

OS information : Ubuntu 20.04 x64

Maven dependencies and plugins as below:

org.springframework.boot spring-boot-starter-json tk.mybatis mapper 4.0.3 org.mybatis.spring.boot mybatis-spring-boot-starter com.github.pagehelper pagehelper-spring-boot-starter mysql mysql-connector-java com.alibaba druid-spring-boot-starter
<build>
    <plugins>
        <plugin>
            <groupId>org.mybatis.generator</groupId>
            <artifactId>mybatis-generator-maven-plugin</artifactId>
            <version>1.3.7</version>
            <configuration>
                <configurationFile>
                    mybatis-generator/generatorConfig.xml
                </configurationFile>
                <overwrite>true</overwrite>
                <verbose>true</verbose>
            </configuration>
            <dependencies>
                <dependency>
                    <groupId>mysql</groupId>
                    <artifactId>mysql-connector-java</artifactId>
                    <version>8.0.16</version>
                </dependency>
                <dependency>
                    <groupId>com.itfsw</groupId>
                    <artifactId>mybatis-generator-plugin</artifactId>
                   <!--  <version>1.3.2</version> -->
                    <version>1.4.0</version>
                </dependency>
            </dependencies>
        </plugin>

    </plugins>

</build>

The configuration for the plugin is:

I got the error message : generatorConfig.xml.xml:5: java.lang.RuntimeException: Cannot instantiate object of type com.itfsw.mybatis.generator.plugins.SelectOneByExamplePlugin java.lang.RuntimeException: Cannot instantiate object of type com.itfsw.mybatis.generator.plugins.SelectOneByExamplePlugin And the generator hung up. Can you please advise?
Ranbowong commented 3 years ago

is the configure file's major contents