美文网首页
mybatis generator插件使用

mybatis generator插件使用

作者: 昼暗 | 来源:发表于2018-12-26 14:13 被阅读0次
    <?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="/Users/chailinxiao/.m2/repository/mysql/mysql-connector-java/8.0.13/mysql-connector-java-8.0.13.jar" />
        
        <context id="context1">
            <jdbcConnection connectionURL="jdbc:mysql://xx.xx.xx.xx:3306/mysql?serverTimezone=UTC" driverClass="com.mysql.jdbc.Driver" password="passwd" userId="root" />
            <javaModelGenerator targetPackage="com.project.server.model.po" targetProject="maotai-server" >
                <property name="enableSubPackages" value="false" />
                <property name="trimStrings" value="true" />
            </javaModelGenerator>
            <sqlMapGenerator targetPackage="com.project.server.mapper" targetProject="maotai-server" >
                <property name="enableSubPackages" value="true" />
            </sqlMapGenerator>
            <javaClientGenerator targetPackage="com.project.server.mapper" targetProject="maotai-server" type="XMLMAPPER" >
                <property name="enableSubPackages" value="true" />
            </javaClientGenerator>
            <table schema="general" tableName="mt_user_setting" domainObjectName="UserSetting"
                enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false"
                enableSelectByExample="false" selectByExampleQueryId="false">
                <property name="useActualColumnNames" value="false" />
            </table>
        </context>
    </generatorConfiguration>
    

    相关文章

      网友评论

          本文标题:mybatis generator插件使用

          本文链接:https://www.haomeiwen.com/subject/rfukkqtx.html