使用人人开源的代码生成器生成开发代码
- renren-generator是人人开源项目的代码生成器,可在线生成entity、xml、dao、service、html、js、sql代码,减少70%以上的开发任务
前提是:需要数据库中存在数据表
1.复制git链接到IDEA
通过git下载源码
人人开源代码生成器gitee链接
2.修改application.yml
- 更新MySQL账号和密码、数据库名称
3.运行RenrenApplication启动类
- Eclipse、IDEA运行RenrenApplication.java,则可启动项目
- 项目访问路径:http://localhost