1.下载mybatis-generator

链接: https://pan.baidu.com/s/1cHp6cD4aur6OO0ZfzWdcSQ

提取码: 3wmb 

2.解压之后是这个样子的

mybatis-generator自动生成相应表的entitry、dao、xml

3.修改generatorConfig.xml信息为自己的信息

mybatis-generator自动生成相应表的entitry、dao、xml

4.双击run.bat即可生成对应问价在src下面,如图

mybatis-generator自动生成相应表的entitry、dao、xml

 

相关文章: