记一次mybatis-generator-config的配置


<?xml version="1.0" encoding="UTF-8"?>
generatorConfiguration PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN"
"http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd">
<generatorConfiguration>
<context id="db" targetRuntime="MyBatis3">
<property name="mergeable" value="true">property>
<commentGenerator>
<property name="suppressDate" value="true"/>
<property name="suppressAllComments" value="false"/>
commentGenerator>
<jdbcConnection driverClass="com.mysql.jdbc.Driver"
connectionURL="jdbc:mysql://127.0.0.1:8306/testcr?useSSL=false"
userId="root"
password="Auto@fh123">
jdbcConnection>
<javaTypeResolver>
<property name="forceBigDecimals" value="false"/>
javaTypeResolver>
<javaModelGenerator targetPackage="io.softace.utp.model.testcr" targetProject="src/main/java">
<property name="enableSubPackages" value="true"/>
<property name="trimStrings" value="true"/>
javaModelGenerator>
<sqlMapGenerator targetPackage="mapper/testcr" targetProject="src/main/resources">
<property name="enableSubPackages" value="true"/>
sqlMapGenerator>
<javaClientGenerator type="XMLMAPPER" targetPackage="io.softace.utp.dao.testcr" targetProject="src/main/java">
<property name="enableSubPackages" value="true"/>
javaClientGenerator>

<table tableName="sx_auto_variable_group_param_info"
enableCountByExample="true"
enableUpdateByExample="true"
enableDeleteByExample="true"
enableSelectByExample="true"
selectByExampleQueryId="true">
<generatedKey column="id" sqlStatement="JDBC"/>
table>

context>
generatorConfiguration>