myBatis代碼自動(dòng)生成配置

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>
以上內(nèi)容是否對(duì)您有幫助:
在線(xiàn)筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號(hào)
微信公眾號(hào)

編程獅公眾號(hào)