<?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="E:/maven_repository_taotao/cangku/mysql/mysql-connector-java/5.1.32/mysql-connector-java-5.1.32.jar"/>
<context id="context1">
<commentGenerator>
<!-- 是否去除自动生成的注释 true:是 : false:否 -->
<property name="suppressAllComments" value="true"/>
</commentGenerator>
<!-- 数据库链接URL、用户名、密码 -->
<jdbcConnection driverClass="com.mysql.jdbc.Driver"
connectionURL="jdbc:mysql://localhost:3306/taotao" userId="root" password="123456" />
<!-- 生成模型的包名和位置 -->
<javaModelGenerator targetPackage="com.taotao.pojo" targetProject="taotao-manager-pojo/src/main/java" />
<!-- 生成的映射文件报名和位置 -->
<sqlMapGenerator targetPackage="com.taotao.mapper" targetProject="taotao-manager-dao/src/main/java" />
<!-- 生成DAO的包名和位置 -->
<javaClientGenerator type="XMLMAPPER" targetPackage="com.taotao.mapper" targetProject="taotao-manager-dao/src/main/java"/>
<!-- 要生成的那些表(更改tableName 和domainObjectName 就可以了) -->
<!-- tableName:想要生成的数据库表,自动化工具会根据该表的结构生成相应的vo对象 -->
<table tableName="tb_content" domainObjectName="TbContent" />
<table tableName="tb_content_category" domainObjectName="TbContentCategory" />
<table tableName="tb_item" domainObjectName="TbItem" />
<table tableName="tb_item_cat" domainObjectName="TbItemCat" />
<table tableName="tb_item_desc" domainObjectName="TbItemDesc" />
<table tableName="tb_item_param" domainObjectName="TbItemParam" />
<table tableName="tb_item_param_item" domainObjectName="TbItemParamItem" />
<table tableName="tb_order" domainObjectName="TbOrder" />
<table tableName="tb_order_item" domainObjectName="TbOrderItem" />
<table tableName="tb_order_shipping" domainObjectName="TbOrderShipping" />
<table tableName="tb_user" domainObjectName="TbUser" />
</context>
</generatorConfiguration>
评论2
最新资源