您的位置:首页 > 编程语言

mybatis-generator 代码自动生成工具

2017-02-26 23:38 423 查看
详见链接:

点击打开链接

说明:

1:按照说明修改:

① 数据库名称和密码 

②数据库链接地址 

③ targetPackage="andy.model" 包路径 

④ targetProject="D:\generator\src" 文件路径 

⑤ 表名称和DO类名称

2:如果要生成 DOExample,就需要将最后相关的false去掉即可。

<table tableName="kb_city" domainObjectName="KbCity" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false" />

3:执行 java -jar mybatis-generator-core-1.3.2.jar -configfile generator.xml -overwrite
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: