zoukankan      html  css  js  c++  java
  • idea 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>
        <!--jdbc 驱动包,等-->
        <!--<classPathEntry location="/Program Files/IBM/SQLLIB/java/db2java.zip" />-->
    
        <context id="sss" targetRuntime="MyBatis3Simple">
    
            <commentGenerator>
                <property name="suppressAllComments" value="true" />
            </commentGenerator>
    
            <jdbcConnection driverClass="org.mariadb.jdbc.Driver"
                            connectionURL="jdbc:mariadb://localhost:3308/swagger"
                            userId="root"
                            password="990801">
            </jdbcConnection>
    
            <javaModelGenerator targetPackage="com.lij.entity" targetProject="src/main/java">
                <property name="trimStrings" value="true" />
            </javaModelGenerator>
    
            <sqlMapGenerator targetPackage="mappers"  targetProject="src/main/resources">
            </sqlMapGenerator>
    
            <javaClientGenerator type="XMLMAPPER" targetPackage="com.lij.dao"  targetProject="src/main/java">
            </javaClientGenerator>
    
            <table tableName="%">
                <property name="useActualColumnNames" value="true"/>
            </table>
        </context>
    </generatorConfiguration>
  • 相关阅读:
    golang ---cron
    Maven私库安装与配置
    Java8新特性之重复注解(repeating annotations)浅析
    String split
    如何将xml转为python中的字典
    json字符串和dict互转
    为什么空格拷贝到linux 会变成两个
    python之socket编程
    ntpdate设置
    Nginx配置ssl证书
  • 原文地址:https://www.cnblogs.com/ljj5/p/9913972.html
Copyright © 2011-2022 走看看