<?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> <!-- 在此处修改数据库的驱动包 必须提前将驱动包放到本配置文件的同级目录下 笔者已提前放好 如使用Oracle数据库时 <classPathEntry location="oracle.jar" /> --> <classPathEntry location="mysql.jar" /> <context id="DB2Tables" targetRuntime="MyBatis3"> <commentGenerator> <property name="suppressAllComments" value="true" /> <!-- 是否取消注释 --> <property name="suppressDate" value="true" /> <!-- 是否生成注释代时间戳 --> </commentGenerator> <!-- 此处修改数据库的连接信息 --> <jdbcConnection driverClass="com.mysql.jdbc.Driver" connectionURL="jdbc:mysql://localhost:3306/easybuy" userId="root" password="pengxiongpengdi" /> <javaTypeResolver> <property name="forceBigDecimals" value="false" /> </javaTypeResolver> <!-- 要生成的实体类 每个项目包的命名 都不一样 可以通过修改 该属性 实现 targetPackage="com.buy.entity" --> <javaModelGenerator targetPackage="com.buy.entity" targetProject="src"> <property name="enableSubPackages" value="true" /> <property name="trimStrings" value="true" /> </javaModelGenerator> <!-- 要生成的接口 --> <sqlMapGenerator targetPackage="com.buy.dao" targetProject="src"> <property name="enableSubPackages" value="true" /> </sqlMapGenerator> <!-- 要生成的映射文件 --> <javaClientGenerator type="XMLMAPPER" targetPackage="com.buy.dao" targetProject="src"> <property name="enableSubPackages" value="true" /> </javaClientGenerator> <!-- 配置要映射的表 数据库中对应的表: tableName="EASYBUY_PRODUCT" 项目中实体类的名字: domainObjectName="ProductEntity" 其他属性默认即可 --> <table tableName="EASYBUY_PRODUCT" domainObjectName="ProductEntity" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false"></table> <table tableName="EASYBUY_PRODUCT_CATEGORY" domainObjectName="CategoryEntity" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false"></table> <table tableName="EASYBUY_USER" domainObjectName="UserEntity" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false"></table> </context> </generatorConfiguration>
机械节能产品生产企业官网模板...
大气智能家居家具装修装饰类企业通用网站模板...
礼品公司网站模板
宽屏简约大气婚纱摄影影楼模板...
蓝白WAP手机综合医院类整站源码(独立后台)...苏ICP备2024110244号-2 苏公网安备32050702011978号 增值电信业务经营许可证编号:苏B2-20251499 | Copyright 2018 - 2025 源码网商城 (www.ymwmall.com) 版权所有