• mybatis Generator 生成配置文件


    <?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>
    <!-- !!!! Driver Class Path !!!! -->
    <classPathEntry location="D:DEMOmysql-bin.jar"/>

    <context id="context" targetRuntime="MyBatis3">
    <commentGenerator>
    <property name="suppressAllComments" value="false"/>
    <property name="suppressDate" value="true"/>
    </commentGenerator>

    <!-- !!!! Database Configurations !!!! -->
    <jdbcConnection driverClass="com.mysql.jdbc.Driver" connectionURL="jdbc:mysql://localhost/dog" userId="root" password="root"/>

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

    <!-- !!!! Model Configurations !!!! -->
    <javaModelGenerator targetPackage="com.fh.controller" targetProject="src/main/java">
    <property name="enableSubPackages" value="false"/>
    <property name="trimStrings" value="true"/>
    </javaModelGenerator>

    <!-- !!!! Mapper XML Configurations !!!! -->
    <sqlMapGenerator targetPackage="mybatis1.dog" targetProject="src/main/resources">
    <property name="enableSubPackages" value="false"/>
    </sqlMapGenerator>

    <!-- !!!! Mapper Interface Configurations !!!! -->
    <javaClientGenerator targetPackage="com.fh.service.dog" targetProject="src/main/java" type="XMLMAPPER">
    <property name="enableSubPackages" value="false"/>
    </javaClientGenerator>

    <!-- !!!! Table Configurations !!!! -->
    <table tableName="sys_user" enableCountByExample="false" enableDeleteByExample="false" enableSelectByExample="false"
    enableUpdateByExample="false"/>
    </context>
    </generatorConfiguration>
  • 相关阅读:
    sublime text 内调试Javascript代码
    Sublime Text 3快捷键汇总
    call、apply、bind的异同
    jQuery.cookie的使用指南
    原来css也可以计算-calc()使用
    WebStorm 最新版本激活方式
    JS获取开始、结束时间
    sublime text3---Emmet:HTML/CSS代码快速编写神器
    ThinkPHP3上传文件中遇到的问题
    ThinkPHP3自动加载公共函数文件
  • 原文地址:https://www.cnblogs.com/caozengling/p/8855528.html
Copyright © 2020-2023  润新知