使用mybatis-generator-core-1.3.2生成dao,mapping跟model等

1,mybatis-generator-core-1.3.2

2,打开上面的文件,按住shift+右键,点击在此处打开命令行

3,将执行语句.txt的内容粘贴到命令行中,回车,到src文件中找到

4.事先要先修改generatorConfig.xml的最后一行,这是第0步,要首先做的,因为生成的是generatorConfig.xml中的内容

<table tableName="NSSB_SSFL_BM" domainObjectName="SsflBm" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false"></table>
tableName就是数据库的表名,domainObjectName为实体类名

原文地址:https://www.cnblogs.com/lonely-buffoon/p/5951594.html