zoukankan      html  css  js  c++  java
  • 记一次mybatis-generator-config的配置

    <?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>
    <context id="db" targetRuntime="MyBatis3">
    <property name="mergeable" value="true"></property>
    <commentGenerator>
    <property name="suppressDate" value="true"/>
    <property name="suppressAllComments" value="false"/>
    </commentGenerator>
    <jdbcConnection driverClass="com.mysql.jdbc.Driver"
    connectionURL="jdbc:mysql://127.0.0.1:8306/testcr?useSSL=false"
    userId="root"
    password="Auto@fh123">
    </jdbcConnection>
    <javaTypeResolver>
    <property name="forceBigDecimals" value="false"/>
    </javaTypeResolver>
    <javaModelGenerator targetPackage="io.softace.utp.model.testcr" targetProject="src/main/java">
    <property name="enableSubPackages" value="true"/>
    <property name="trimStrings" value="true"/>
    </javaModelGenerator>
    <sqlMapGenerator targetPackage="mapper/testcr" targetProject="src/main/resources">
    <property name="enableSubPackages" value="true"/>
    </sqlMapGenerator>
    <javaClientGenerator type="XMLMAPPER" targetPackage="io.softace.utp.dao.testcr" targetProject="src/main/java">
    <property name="enableSubPackages" value="true"/>
    </javaClientGenerator>

    <table tableName="sx_auto_variable_group_param_info"
    enableCountByExample="true"
    enableUpdateByExample="true"
    enableDeleteByExample="true"
    enableSelectByExample="true"
    selectByExampleQueryId="true">
    <generatedKey column="id" sqlStatement="JDBC"/>
    </table>

    </context>
    </generatorConfiguration>














  • 相关阅读:
    搭建typescript练习环境
    原有vue项目支持typescript
    express使用session
    express使用cookie
    javascript原型链
    javascript事件循环
    express中间件及body-parser第三方中间件获取post传值
    express路由、静态托管、ejs模板引擎
    nodejs驱动mongodb 实现数据增删改查,将数据库数据渲染在页面,通过表单项数据库新增数据
    柏松分布
  • 原文地址:https://www.cnblogs.com/xiaweicn/p/14477392.html
Copyright © 2011-2022 走看看