<?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="context1">
<jdbcConnection connectionURL="jdbc:mysql://localhost:3306/sorl" driverClass="com.mysql.jdbc.Driver" password="yhs120703" userId="root" />
<javaModelGenerator targetPackage="cn.yhs.pojo" targetProject="easyui/src/main/java" />
<sqlMapGenerator targetPackage="cn.yhs.mapper" targetProject="easyui/src/main/java" />
<javaClientGenerator targetPackage="cn.yhs.mapper" targetProject="easyui/src/main/java" type="XMLMAPPER" /><!--type=" ANNOTATEDMAPPER" -->
<table tableName="t_user" domainObjectName="User" enableSelectByExample="true" ></table>
</context>
</generatorConfiguration>
来源:https://blog.csdn.net/yxgwp/article/details/101421821