1:需要的文件
2:generator文件内容
<?
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=
"mysql-connector-java-5.1.25-bin.jar"
/>
<
context
id=
"DB2Tables"
targetRuntime=
"MyBatis3"
>
<
commentGenerator
>
<
property
name=
"suppressDate"
value=
"true"
/>
<!-- 是否去除自动生成的注释 true:是 : false:否 -->
<
property
name=
"s