<?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">
<generatorConfiguration>
<classPathEntry location="D:\maven-repository\mysql\mysql-connector-java\5.1.30\mysql-connector-java-5.1.30.jar" />
<context id="MysqlTables" targetRuntime="MyBatis3" defaultModelType="flat">
<commentGenerator>
<property name="suppressAllComments" value="true" />
</commentGenerator>
<jdbcConnection driverClass="com.mysql.jdbc.Driver" connectionURL="jdbc:mysql://10.94.46.51:8601/niux_crmv3" userId="test" password="sewtdfwtest"/>
<javaTypeResolver type="">
<property name="forceBigDecimals" value="false" />
</javaTypeResolver>
<javaModelGenerator targetPackage="com.niux.crm.tmp" targetProject="src/test/java">
<property name="enableSubPackages" value="true" />
<property name="trimStrings" value="true" />
</javaModelGenerator>
<sqlMapGenerator targetPackage="com.niux.crm.tmp" targetProject="src/test/java">
<property name="enableSubPackages" value="true" />
</sqlMapGenerator>
<!--生成sqlMap还是注解-->
<javaClientGenerator type="XMLMAPPER" targetPackage="com.niux.crm.tmp" targetProject="src/test/java">
<property name="enableSubPackages" value="true" />
</javaClientGenerator>
<!--enableSelectByExample等,用于控制是否生成Example类-->
<table tableName="crm_firm" domainObjectName="CrmFirm"
enableSelectByExample="false"
enableCountByExample="false"
enableUpdateByExample="false"
enableDeleteByExample="false"
></table>
</context>
</generatorConfiguration>
Mybatis SQLMap自动生成工具
最新推荐文章于 2024-05-27 16:23:05 发布