<?xml version="1.0" encoding="UTF-8" ?>
<classPathEntry location="C:\Project\repository\mysql\mysql-connector-java\5.1.47\mysql-connector-java-5.1.47.jar" />
<context id="Mysql" targetRuntime="MyBatis3">
<commentGenerator>
<!-- 是否去除自动生成的注释 true:是 : false:否 -->
<property name="suppressAllComments" value="true" />
</commentGenerator>
<jdbcConnection driverClass="${driverClassName}"
connectionURL="${jdbc_url}" userId="${jdbc_username}"
password="${jdbc_password}" />
<!-- 指定生成pojo的包和此包在项目中的地址; -->
<javaModelGenerator targetPackage="com.baoju.entity"
targetProject="src\main\java" />
<!-- 指定生成pojo的映射xml文件的所在包和此包在项目中的地址 -->
<sqlMapGenerator targetPackage="com.baoju.mapping"
targetProject="src\main\java" />
<!-- 指定生成访问映射xml文件的接口所在包和此包在项目中的地址; -->
<javaClientGenerator type="XMLMAPPER"
targetPackage="com.baoju.dao"
targetProject="src\main\java">
</javaClientGenerator>
<!-- 配置表名跟pojo名 该table节点可以多个 -->
<table tableName="student" domainObjectName="Student" enableCountByExample="false" enableUpdateByExample="false"
enableDeleteByExample="false" enableSelectByExample="false"
selectByExampleQueryId="false">
<property name="useActualColumnNames" value="false" />
</table>
</context>