mybatis-generator:generate 生成
<?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:/tools32/apache-maven-3.1.1/repos/mysql/mysql-connector-java/5.1.27/mysql-connector-java-5.1.27.jar"/>
<context id="my" targetRuntime="MyBatis3">
<commentGenerator>
<property name="suppressDate" value="false"/>
<property name="suppressAllComments" value="true"/>
</commentGenerator>
<jdbcConnection driverClass="com.mysql.jdbc.Driver"
connectionURL="jdbc:mysql://localhost:3306/web56db?useUnicode=true&characterEncoding=utf8" userId="root"
password="root"/>
<javaModelGenerator targetPackage="com.leyidai.entity"
targetProject="F:/generatorConfig">
<property name="enableSubPackages" value="true"/>
<property name="trimStrings" value="true"/>
</javaModelGenerator>
<sqlMapGenerator targetPackage="com.leyidai.web.mapper"
targetProject="F:/generatorConfig">
<property name="enableSubPackages" value="true"/>
</sqlMapGenerator>
<javaClientGenerator targetPackage="com.leyidai.web.mapper"
targetProject="F:/generatorConfig" type="XMLMAPPER">
<property name="enableSubPackages" value="true"/>
</javaClientGenerator>
<table schema="web56db" tableName="c_consumption_info" domainObjectName="ConsumptionInfo"
enableCountByExample="true" enableUpdateByExample="true" enableDeleteByExample="true" enableSelectByExample="true" selectByExampleQueryId="true">
</table>
</context>
</generatorConfiguration>