eclipse mybatis-generator 插件安装及使用

1、
eclipse mybatis-generator 插件安装及使用_第1张图片
 2、 点击Add...

Name自定义

在Location中输入https://dl.bintray.com/mybatis/mybatis-generator/
eclipse mybatis-generator 插件安装及使用_第2张图片
 3、勾选之后,点击next。一步一步点下去就可以了。
eclipse mybatis-generator 插件安装及使用_第3张图片
 4、选中工程一个目录(新建生成文件的位置)。点击右键->New->Other...


eclipse mybatis-generator 插件安装及使用_第4张图片
 5、
eclipse mybatis-generator 插件安装及使用_第5张图片

6、
eclipse mybatis-generator 插件安装及使用_第6张图片

7、生成的文件内容如下:


eclipse mybatis-generator 插件安装及使用_第7张图片
 
 8、我的配置如下:


            location="D:/Program Files (x86)/repository/mysql/mysql-connector-java/5.1.30/mysql-connector-java-5.1.30.jar" />
   
                    connectionURL="jdbc:mysql://localhost:3306/jeesite?useUnicode=true"
            userId="root" password="123456" />
                    targetProject="jeesite\src\main\java" />
                    targetProject="jeesite\src\main\resources" />
                    targetProject="jeesite\src\main\java" type="XMLMAPPER" />
       

            enableCountByExample="false" enableUpdateByExample="false"
            enableDeleteByExample="false" enableSelectByExample="false"
            selectByExampleQueryId="false"/>

   

9、配置完之后,右键配置文件。选中Generate MyBatis/iBATIS Artifacts


eclipse mybatis-generator 插件安装及使用_第8张图片
 
 10、在对应的文件目录即可生成相应的文件


eclipse mybatis-generator 插件安装及使用_第9张图片
 

你可能感兴趣的:(maven)