|
|
|
|
<?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\LocalWareHouse\mysql\mysql-connector-java\5.1.46\mysql-connector-java-5.1.46.jar" />
|
|
|
|
|
|
|
|
|
|
<context id="infoGuardian" targetRuntime="MyBatis3">
|
|
|
|
|
|
|
|
|
|
<!--<plugin type="com.jetair.mybatis.generator.plugin.QueryAllPro" />-->
|
|
|
|
|
|
|
|
|
|
<!-- 注释 -->
|
|
|
|
|
<commentGenerator>
|
|
|
|
|
<property name="suppressAllComments" value="true" /><!-- 是否取消注释 -->
|
|
|
|
|
<property name="suppressDate" value="true" /> <!-- 是否生成注释代时间戳 -->
|
|
|
|
|
</commentGenerator>
|
|
|
|
|
|
|
|
|
|
<!-- 数据库连接 -->
|
|
|
|
|
|
|
|
|
|
<jdbcConnection
|
|
|
|
|
driverClass="com.mysql.jdbc.Driver"
|
|
|
|
|
connectionURL="jdbc:mysql://8.140.198.243:3306/hiver_shop?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT%2B8&allowPublicKeyRetrieval=true"
|
|
|
|
|
userId="reddoor"
|
|
|
|
|
password="reddoor168">
|
|
|
|
|
</jdbcConnection>
|
|
|
|
|
|
|
|
|
|
<!-- 只有一个属于forceBigDecimals,默认false。 如果字段精确超过0,生成BigDecimal 如果字段精确是0,总长度10-18生成Long;如果字段精确是0, 总长5-9生成Integer; 如果字段精确是0,总长小于5生成Short; 如果forceBigDecimals为true,统一生成BigDecimal -->
|
|
|
|
|
<javaTypeResolver>
|
|
|
|
|
<!-- 是否使用bigDecimal, false可自动转化以下类型(Long, Integer, Short, etc.) -->
|
|
|
|
|
<property name="forceBigDecimals" value="false" />
|
|
|
|
|
</javaTypeResolver>
|
|
|
|
|
|
|
|
|
|
<!-- 生成vo、model -->
|
|
|
|
|
<javaModelGenerator targetPackage="cc.hiver.mall.entity" targetProject="src/myBatis/java">
|
|
|
|
|
<property name="enableSubPackages" value="true" />
|
|
|
|
|
<!-- 是否针对string类型的字段在set的时候进行trim调用 -->
|
|
|
|
|
<property name="trimStrings" value="true" />
|
|
|
|
|
</javaModelGenerator>
|
|
|
|
|
|
|
|
|
|
<!-- 生成map.xml文件 -->
|
|
|
|
|
<sqlMapGenerator targetPackage="mapping" targetProject="src/myBatis/resources" />
|
|
|
|
|
|
|
|
|
|
<!-- 生成mapxml对应client,也就是接口dao -->
|
|
|
|
|
<javaClientGenerator type="XMLMAPPER" targetPackage="cc.hiver.mall.dao.mapper" targetProject="src/myBatis/java">
|
|
|
|
|
<property name="enableSubPackages" value="false" />
|
|
|
|
|
</javaClientGenerator>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<table tableName="t_shop_user" domainObjectName="ShopUser"
|
|
|
|
|
enableCountByExample="false"
|
|
|
|
|
enableDeleteByExample="false"
|
|
|
|
|
enableSelectByExample="false"
|
|
|
|
|
enableUpdateByExample="false">
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
|
|
</context>
|
|
|
|
|
</generatorConfiguration>
|