myBatis代码自动生成配置

2020-08-27 17:01 更新
<?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="E:/jar/classes12.jar" />
  <context id="tm" >
    <jdbcConnection driverClass="oracle.jdbc.driver.OracleDriver" connectionURL="jdbc:oracle:thin:@xx.xx.xx.x:1521:xxx" userId="root" password="123" />
    <javaModelGenerator targetPackage="com.cyh.vo" targetProject="tm/src/main/java" />
    <sqlMapGenerator targetPackage="com.cyh.dao" targetProject="tm/src/main/java" />
    <javaClientGenerator targetPackage="com.cyh.dao" targetProject="tm/src/main/java" type="XMLMAPPER" />
    <table tableName="t_bd_user" enableSelectByExample="false" enableDeleteByExample="false" enableCountByExample="false" selectByExampleQueryId="true" enableUpdateByExample="false">
    </table>
  </context>
</generatorConfiguration>
以上内容是否对您有帮助:
在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号