First step to install the Eclipse plugin
The second step, the configuration file is as follows
<?xml version= "1.0" encoding= "UTF-8"?>
<! DOCTYPE generatorconfiguration Public "-//mybatis.org//dtd mybatis Generator Configuration 1.0//en" "/http Mybatis.org/dtd/mybatis-generator-config_1_0.dtd ">
<!--use eclipse to install generator plug-ins to automatically insinuate, reduce code error rates, and strictly follow Sun's Java code specifications--
<generatorConfiguration>
<!--MySQL database connection jar--
<classpathentry
location= "D:/apache-tomcat-6.0.44_sso/lib/mysql-connector-java-5.0.8-bin.jar"/>
<context id= "Context1" >
<commentGenerator>
<property name= "Suppressdate" value= "true"/>
<property name= "Suppressallcomments" value= "true"/>
</commentGenerator>
<!--MySQL database connection address, user name, password---
<jdbcconnection driverclass= "Com.mysql.jdbc.Driver"
Connectionurl= "Jdbc:mysql://192.168.31.184:3306/gjmj_product" userid= "root"
password= "GJMJ"/>
<javamodelgenerator targetpackage= "Com.gjmj.mybatisMapper.entity"
targetproject= "Mybatismapper"/>
<sqlmapgenerator targetpackage= "Com.gjmj.mybatisMapper.mapper"
targetproject= "Mybatismapper"/>
<javaclientgenerator targetpackage= "Com.gjmj.mybatisMapper.client"
targetproject= "Mybatismapper" type= "Xmlmapper"/>
<!--requires an ORM mapping table and the corresponding entity name--
<table tablename= "T_assemble_package" domainobjectname= "Assemblepackage"
Enablecountbyexample= "false" enableupdatebyexample= "false"
Enabledeletebyexample= "false" enableselectbyexample= "false"
Selectbyexamplequeryid= "false" >
</table>
<table tablename= "T_assemble_packagen" domainobjectname= "Assemblepackagen"
Enablecountbyexample= "false" enableupdatebyexample= "false"
Enabledeletebyexample= "false" enableselectbyexample= "false"
Selectbyexamplequeryid= "false" >
</table>
<table tablename= "t_base_att_type_classify" Domainobjectname= "Basea Tttypeclassify "
Enablecountbyexample= "false" enableupdatebyexample= "false"
Enabledeletebyexample= "false" enableselectbyexample= "false"
Selectbyexamplequeryid= "false" >
</table>
<table tablename= "T_base_attribute" domainobjectname= "Baseattribute"
Enablecountbyexample= "false" enableupdatebyexample= "false"
Enabledeletebyexample= "false" enableselectbyexample= "false"
Selectbyexamplequeryid= "false" >
</table>
<table tablename= "t_base_attribute_mould" Domainobjectname= "Ba Seattributemould "
Enablecountbyexample= "false" enableupdatebyexample= "false"
Enabledeletebyexample= "false" enableselectbyexample= "false"
Selectbyexamplequeryid= "false" >
</table>
<table tablename= "T_base_attribute_type" Domainobjectname= "Bas Eattributetype "
Enablecountbyexample= "false" enableupdatebyexample= "false"
Enabledeletebyexample= "false" enableselectbyexample= "false"
Selectbyexamplequeryid= "false" >
</table>
<table tablename= "T_base_brand" domainobjectname= "Basebrand"
Enablecountbyexample= "false" enableupdatebyexample= "false"
Enabledeletebyexample= "false" enableselectbyexample= "false"
Selectbyexamplequeryid= "false" >
</table>
<table tablename= "t_base_classify" domainobjectname= "Baseclassify"
Enablecountbyexample= "false" enableupdatebyexample= "false"
Enabledeletebyexample= "false" enableselectbyexample= "false"
Selectbyexamplequeryid= "false" >
</table>
<table tablename= "T_base_classify_brand" Domainobjectname= "Bas Eclassifybrand "
Enablecountbyexample= "false" enableupdatebyexample= "false"
Enabledeletebyexample= "false" enableselectbyexample= "false"
Selectbyexamplequeryid= "false" >
</table>
<table tablename= "T_base_mould_attribute" Domainobjectname= "Ba Semouldattribute "
Enablecountbyexample= "false" enableupdatebyexample= "false"
Enabledeletebyexample= "false" enableselectbyexample= "false"
Selectbyexamplequeryid= "false" >
</table>
<table tablename= "T_base_mould_query" domainobjectname= "Basemouldquery"
Enablecountbyexample= "false" enableupdatebyexample= "false"
Enabledeletebyexample= "false" enableselectbyexample= "false"
Selectbyexamplequeryid= "false" >
</table>
<table tablename= "T_base_pro_spec" domainobjectname= "Baseprospec"
Enablecountbyexample= "false" enableupdatebyexample= "false"
Enabledeletebyexample= "false" enableselectbyexample= "false"
Selectbyexamplequeryid= "false" >
</table>
<table tablename= "T_base_query_price" domainobjectname= "Basequeryprice"
Enablecountbyexample= "false" enableupdatebyexample= "false"
Enabledeletebyexample= "false" enableselectbyexample= "false"
Selectbyexamplequeryid= "false" >
</table>
<table tablename= "t_hom_distribution" domainobjectname= "Homdistribution"
Enablecountbyexample= "false" enableupdatebyexample= "false"
Enabledeletebyexample= "false" enableselectbyexample= "false"
Selectbyexamplequeryid= "false" >
</table>
<table tablename= "T_hom_pro_attribute" domainobjectname= "Homproattribute"
Enablecountbyexample= "false" enableupdatebyexample= "false"
Enabledeletebyexample= "false" enableselectbyexample= "false"
Selectbyexamplequeryid= "false" >
</table>
<table tablename= "T_hom_pro_custom_att" domainobjectname= "Homprocustomatt"
Enablecountbyexample= "false" enableupdatebyexample= "false"
Enabledeletebyexample= "false" enableselectbyexample= "false"
Selectbyexamplequeryid= "false" >
</table>
<table tablename= "T_hom_pro_dis_area" domainobjectname= "Homprodisarea"
Enablecountbyexample= "false" enableupdatebyexample= "false"
Enabledeletebyexample= "false" enableselectbyexample= "false"
Selectbyexamplequeryid= "false" >
</table>
</context>
</generatorConfiguration>
This article is from the "Nighthawk Soar" blog, please be sure to keep this source http://iritchie.blog.51cto.com/7031731/1668954
MYBATIS3 Database Automation Mapping configuration file