1 Star 1 Fork 0

葫芦瓜/SchoolDeal

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
mbg.xml 3.11 KB
一键复制 编辑 原始数据 按行查看 历史
<?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">
<!-- 这是mybatis generatior 的配置文件,用于mybatis逆向工程 -->
<generatorConfiguration>
<context id="DB2Tables" targetRuntime="MyBatis3">
<!-- 生成时是否禁止注释的生成,true时会禁止 -->
<commentGenerator>
<property name="suppressAllComments" value="true" />
</commentGenerator>
<!-- 配置数据库连接 ,因为只会用一次,所以可以直接在下面写出来,不需要读取配置文件-->
<jdbcConnection driverClass="com.mysql.jdbc.Driver"
connectionURL="jdbc:mysql://localhost:3306/schooldeal"
userId="root"
password="123456">
</jdbcConnection>
<javaTypeResolver >
<property name="forceBigDecimals" value="false" />
</javaTypeResolver>
<!-- 指定Javabean生成的位置 ,注意targetProject不需要接着写包名-->
<javaModelGenerator
targetPackage="com.kingguanzhang.pojo.pojo"
targetProject=".\src\main\java">
<property name="enableSubPackages" value="true" />
<property name="trimStrings" value="true" />
</javaModelGenerator>
<!-- 指定sql映射文件生成的位置 -->
<sqlMapGenerator
targetPackage="mapper.mapper"
targetProject=".\src\main\resources">
<property name="enableSubPackages" value="true" />
</sqlMapGenerator>
<!-- 指定Dao接口生成的位置 -->
<javaClientGenerator type="XMLMAPPER"
targetPackage="com.kingguanzhang.dao.dao"
targetProject=".\src\main\java">
<property name="enableSubPackages" value="true" />
</javaClientGenerator>
<!-- 指定每个表的生成策略 -->
<!--<table tableName="tb_area" domainObjectName="Area" >
</table>
<table tableName="tb_local_auth" domainObjectName="LocalAuth" >
</table>
<table tableName="tb_person_info" domainObjectName="PersonInfo" >
</table>
<table tableName="tb_product" domainObjectName="Product" >
</table>
<table tableName="tb_product_category" domainObjectName="ProductCategory" >
</table>
<table tableName="tb_product_img" domainObjectName="ProductImg" >
</table>
<table tableName="tb_shop" domainObjectName="Shop" >
</table>
<table tableName="tb_role" domainObjectName="Role" >
</table>
<table tableName="tb_role_localauth" domainObjectName="RoleLocalauth" >
</table>-->
<table tableName="tb_local_auth" domainObjectName="LocalAuth" >
</table>
<table tableName="tb_product" domainObjectName="Product" >
</table>
<table tableName="tb_shop" domainObjectName="Shop" >
</table>
</context>
</generatorConfiguration>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/captee/SchoolDeal.git
git@gitee.com:captee/SchoolDeal.git
captee
SchoolDeal
SchoolDeal
master

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385