mybatis generator插件使用
2018-12-26 本文已影响0人
昼暗
<?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="/Users/chailinxiao/.m2/repository/mysql/mysql-connector-java/8.0.13/mysql-connector-java-8.0.13.jar" />
<context id="context1">
<jdbcConnection connectionURL="jdbc:mysql://xx.xx.xx.xx:3306/mysql?serverTimezone=UTC" driverClass="com.mysql.jdbc.Driver" password="passwd" userId="root" />
<javaModelGenerator targetPackage="com.project.server.model.po" targetProject="maotai-server" >
<property name="enableSubPackages" value="false" />
<property name="trimStrings" value="true" />
</javaModelGenerator>
<sqlMapGenerator targetPackage="com.project.server.mapper" targetProject="maotai-server" >
<property name="enableSubPackages" value="true" />
</sqlMapGenerator>
<javaClientGenerator targetPackage="com.project.server.mapper" targetProject="maotai-server" type="XMLMAPPER" >
<property name="enableSubPackages" value="true" />
</javaClientGenerator>
<table schema="general" tableName="mt_user_setting" domainObjectName="UserSetting"
enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false"
enableSelectByExample="false" selectByExampleQueryId="false">
<property name="useActualColumnNames" value="false" />
</table>
</context>
</generatorConfiguration>