<?xml version="1.0" encoding="UTF-8"?>
<jdbcConnection driverClass="com.mysql.jdbc.Driver"
connectionURL="jdbc:mysql://127.0.0.1:3306/pyg16" userId="root"
password="root">
</jdbcConnection>
<!-- <jdbcConnection driverClass="oracle.jdbc.OracleDriver"
connectionURL="jdbc:oracle:thin:@127.0.0.1:1521:yycg"
userId="yycg"
password="yycg">
</jdbcConnection> -->
<!-- 默认 false,把 JDBC DECIMAL 和 NUMERIC 类型解析为 Integer true,把 JDBC DECIMAL 和
NUMERIC 类型解析为java.math.BigDecimal -->
<javaTypeResolver>
<property name="forceBigDecimals" value="false" />
</javaTypeResolver>
<!-- targetProject:生成 POJO 类的位置 -->
<javaModelGenerator targetPackage="com.pyg.pojo" targetProject="src/main/java">
<!-- enableSubPackages:是否让schema 作为包的后缀 -->
<property name="enableSubPackages" value="true" />
<!-- 从数据库返回的值被清理前后的空格 -->
<property name="trimStrings" value="true" />
</javaModelGenerator>
<!-- 生成 XML文件 -->
<sqlMapGenerator targetPackage="com.pyg.mapper" targetProject="./src/main/resources">
<property name="enableSubPackages" value="false" />
</sqlMapGenerator>
<!--生成接口-->
<javaClientGenerator type="XMLMAPPER"
targetPackage="com.pyg.mapper" targetProject="./src/main/java">
<property name="enableSubPackages" value="false" />
</javaClientGenerator>
<table tableName="tb_user"></table>
<table tableName="tb_content"></table>
<table tableName="tb_content_category"></table>
<table tableName="tb_item"></table>
<table tableName="tb_item_cat"></table>
<table tableName="tb_order"></table>
<table tableName="tb_order_item"></table>
<table tableName="tb_address"></table>
<table tableName="tb_areas"></table>
<table tableName="tb_brand"></table>
<table tableName="tb_provinces"></table>
<table tableName="tb_cities"></table>
<table tableName="tb_seller"></table>
<table tableName="tb_freight_template"></table>
<table tableName="tb_specification"></table>
<table tableName="tb_specification_option"></table>
<table tableName="tb_type_template"></table>
<table tableName="tb_goods"></table>
<table tableName="tb_goods_desc"></table>
<table tableName="tb_pay_log"></table>
<table tableName="tb_seckill_goods"></table>
<table tableName="tb_seckill_order"></table>
</context>