1、首先保证安装了jdk,并配置环境变量
2、根据自己需要,修改generator.xml
修改数据库url、用户名,密码及路径等。
3、运行cmd,执行命令:java -jar mybatis-generator-core-1.3.2.jar -configfile generator.xml -overwrite
4、详细请参考本人博客:http://blog.csdn.net/m0_37862829
5、本人的ssm做的博客:http://lovelyj.vicp.net/Blog/index.html