<?xmlversion="1.0"encoding="UTF-8"?>
<!DOCTYPEgeneratorConfiguration
PUBLIC"-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN"
"http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd">
<generatorConfiguration>
<!--jar
<classPathEntrylocation="D:/E/worksoft/apache-maven-3.6.0/repository/mysql/mysql-connector-java/8.0.11/mysql-connector-java-8.0.11.jar"/>
<!--jar
<!-- <classPathEntry location="mysql-connector-java-8.0.11.jar" /> -->
<!-- id:-->
<contextid="DB2Tables"targetRuntime="MyBatis3">
<commentGenerator>
<!-- false:-->
<!-- -->
<propertyname="suppressDate"value="true"/>
<!-- truefalse:-->
<propertyname="suppressAllComments"value="true"/>
</commentGenerator>
<!---->
<jdbcConnectiondriverClass="com.mysql.cj.jdbc.Driver"
connectionURL="jdbc:mysql://localhost:3306/mytest?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&serverTimezone=GMT%2B8"
userId="root"
password="(Junli@2018*test)">
</jdbcConnection>
<javaTypeResolver>
<!-- decimalJava sql BigDecimal -->
<!-- double long -->
<!-- sql -->
<!-- This property is used to specify whether MyBatis Generator should
force the use of java.math.BigDecimal for DECIMAL and NUMERIC fields, -->
<propertyname="forceBigDecimals"value="false"/>
</javaTypeResolver>
<!-- -->
<javaModelGeneratortargetPackage="com.mybatis.bean"
targetProject="src/main/java">
<propertyname="enableSubPackages"value="true"/>
<!-- -->
<propertyname="trimStrings"value="true"/>
</javaModelGenerator>
<!-- -->
<sqlMapGeneratortargetPackage="com.mybatis.mapper"
targetProject="src/main/java">
<propertyname="enableSubPackages"value="true"/>
</sqlMapGenerator>
<!-- -->
<javaClientGeneratortype="XMLMAPPER"
targetPackage="com.mybatis.dao"
targetProject="src/main/java">
<propertyname="enableSubPackages"value="true"/>
</javaClientGenerator>
<!-- -->
<tabletableName="mydept"domainObjectName="Department"></table>
<tabletableName="myemployeee"domainObjectName="Employee"></table>
</context>
</generatorConfiguration>