zoukankan      html  css  js  c++  java
  • 逆向工程mybatis-geneator.xml


    <?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>
    <!-- 驱动jar包,mssql使用jtds-1.2.jar,mysql使用mysql-connector-java-5.0.8-bin.jar -->
    <classPathEntry
    location="C:UsersAdministratorDesktopjarmysql-connector-java-5.1.18-bin.jar" />

    <context id="FreeCMS_Tables" targetRuntime="MyBatis3">

    <!-- 注释 -->
    <commentGenerator >
    <property name="suppressAllComments" value="false"/><!-- 是否取消注释 -->
    <property name="suppressDate" value="true" /> <!-- 是否生成注释代时间戳-->
    </commentGenerator>

    <!-- mysql配置 -->
    <jdbcConnection driverClass="com.mysql.jdbc.Driver"
    connectionURL="jdbc:mysql://localhost:3306/mybatis" userId="root"
    password="745412">
    </jdbcConnection>

    <javaTypeResolver>
    <property name="forceBigDecimals" value="false" />
    </javaTypeResolver>

    <!-- model生成文件的存放位置 -->
    <javaModelGenerator targetPackage="com.yanglf.entity"
    targetProject="TestMybatis">
    <property name="enableSubPackages" value="true" />
    <property name="trimStrings" value="true" />
    </javaModelGenerator>

    <!-- sqlmap生成文件的存放位置 -->
    <sqlMapGenerator targetPackage="com.yanglf.mapper"
    targetProject="TestMybatis">
    <property name="enableSubPackages" value="true" />
    </sqlMapGenerator>

    <!-- dao生成文件的存放位置 -->
    <javaClientGenerator type="XMLMAPPER"
    targetPackage="com.yanglf.dao"
    targetProject="TestMybatis">
    <property name="enableSubPackages" value="true" />


    </javaClientGenerator>

    <!-- 要生成的表 -->
    <table tableName="order_detail" domainObjectName="order_detail"
    enableCountByExample="false" enableUpdateByExample="false"
    enableDeleteByExample="false" enableSelectByExample="false"
    selectByExampleQueryId="false"></table>
    <table tableName="orders" domainObjectName="orders"
    enableCountByExample="false" enableUpdateByExample="false"
    enableDeleteByExample="false" enableSelectByExample="false"
    selectByExampleQueryId="false"></table>
    <table tableName="person" domainObjectName="person"
    enableCountByExample="false" enableUpdateByExample="false"
    enableDeleteByExample="false" enableSelectByExample="false"
    selectByExampleQueryId="false"></table>

    </context>
    </generatorConfiguration>
    ---------------------

    大家可以关注我csdn博客,谢谢啦

    http://howzhi.com/group/274/discuss/266080

     

    http://howzhi.com/group/274/discuss/266081

    【路漫漫其修远兮,吾将上下而求索】

  • 相关阅读:
    Github开始强制使用PAT(Personal Access Token)了
    STM32F401的外部中断EXTI
    STM32F401的PWM输出
    STM32F103和STM32F401的ADC多通道采集DMA输出
    nRF24L01无线模块笔记
    51单片机(STC89C52)在Ubuntu下的开发
    51单片机(STC89C52)的中断和定时器
    51单片机的软件和硬件PCA/PWM输出
    Zadig 云原生持续交付 面向开发者设计的开源、高可用 CI/CD
    人生 乐观 悲观 英雄
  • 原文地址:https://www.cnblogs.com/binghuojxj/p/10884030.html
Copyright © 2011-2022 走看看