欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

人人开源代码生成器

程序员文章站 2024-03-20 22:53:52
...

一 下载地址

二 application.yml关键配置修改

# mysql
spring:
  datasource:
    type: com.alibaba.druid.pool.DruidDataSource
    #MySQL配置
    driverClassName: com.mysql.jdbc.Driver
    # 修改数据库的URL
    url: jdbc:mysql://192.168.0.110:3306/gulimall_wms?useUnicode=true&characterEncoding=UTF-8&useSSL=false
    # 修改数据库的用户名
    username: root
    # 修改数据库的密码
    password: root

三 generator.properties关键配置修改

# 代码生成器,配置信息
# 主目录格式: com + 组织名
mainPath=com.atguigu
# 包名格式: com + 组织名 + 项目名
package=com.atguigu.gulimall
# 模块名
moduleName=ware
# 作者
author=cakin24
# Email
aaa@qq.com
# 表前缀:类名不会包含表前缀
tablePrefix=wms_

四 运行RenrenApplication

1 访问 localhost
人人开源代码生成器
2 逆向生成代码
人人开源代码生成器
3 生成代码结构
C:.
├─java
│  └─com
│      └─atguigu
│          └─gulimall
│              └─ware
│                  ├─controller
│                  │      PurchaseController.java
│                  │      PurchaseDetailController.java
│                  │      UndoLogController.java
│                  │      WareInfoController.java
│                  │      WareOrderTaskController.java
│                  │      WareOrderTaskDetailController.java
│                  │      WareSkuController.java
│                  │
│                  ├─dao
│                  │      PurchaseDao.java
│                  │      PurchaseDetailDao.java
│                  │      UndoLogDao.java
│                  │      WareInfoDao.java
│                  │      WareOrderTaskDao.java
│                  │      WareOrderTaskDetailDao.java
│                  │      WareSkuDao.java
│                  │
│                  ├─entity
│                  │      PurchaseDetailEntity.java
│                  │      PurchaseEntity.java
│                  │      UndoLogEntity.java
│                  │      WareInfoEntity.java
│                  │      WareOrderTaskDetailEntity.java
│                  │      WareOrderTaskEntity.java
│                  │      WareSkuEntity.java
│                  │
│                  └─service
│                      │  PurchaseDetailService.java
│                      │  PurchaseService.java
│                      │  UndoLogService.java
│                      │  WareInfoService.java
│                      │  WareOrderTaskDetailService.java
│                      │  WareOrderTaskService.java
│                      │  WareSkuService.java
│                      │
│                      └─impl
│                              PurchaseDetailServiceImpl.java
│                              PurchaseServiceImpl.java
│                              UndoLogServiceImpl.java
│                              WareInfoServiceImpl.java
│                              WareOrderTaskDetailServiceImpl.java
│                              WareOrderTaskServiceImpl.java
│                              WareSkuServiceImpl.java
│
└─resources
    ├─mapper
    │  └─ware
    │          PurchaseDao.xml
    │          PurchaseDetailDao.xml
    │          UndoLogDao.xml
    │          WareInfoDao.xml
    │          WareOrderTaskDao.xml
    │          WareOrderTaskDetailDao.xml
    │          WareSkuDao.xml
    │
    └─src
        └─views
            └─modules
                └─ware
                        purchase-add-or-update.vue
                        purchase.vue
                        purchasedetail-add-or-update.vue
                        purchasedetail.vue
                        undolog-add-or-update.vue
                        undolog.vue
                        wareinfo-add-or-update.vue
                        wareinfo.vue
                        wareordertask-add-or-update.vue
                        wareordertask.vue
                        wareordertaskdetail-add-or-update.vue
                        wareordertaskdetail.vue
                        waresku-add-or-update.vue
                        waresku.vue