1、人人代码生成器
| https://gitee.com/renrenio/renren-generator.git |
2、配置renren-generator
| |
| |
| server: |
| port: 80 |
| |
| spring: |
| datasource: |
| type: com.alibaba.druid.pool.DruidDataSource |
| |
| driverClassName: com.mysql.cj.jdbc.Driver |
| url: jdbc:mysql:///:3306/yueji_pms?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai&useSSL=false |
| username: root |
| password: root |
| jackson: |
| time-zone: GMT+8 |
| date-format: yyyy-MM-dd HH:mm:ss |
| resources: |
| static-locations: classpath:/static/,classpath:/views/ |
| mybatis-plus: |
| mapperLocations: classpath:mapper/**/*.xml |
| pagehelper: |
| reasonable: true |
| supportMethodsArguments: true |
| params: count=countSql |
| |
| renren: |
| database: mysql |
| |
| |
| |
| |
| mainPath=com.yueji |
| |
| package=com.yueji |
| moduleName=product |
| |
| author=yuueji |
| |
| email=yuueji@163.com |
| |
| tablePrefix=pms_ |
| |
| |
| tinyint=Integer |
| smallint=Integer |
| mediumint=Integer |
| int=Integer |
| integer=Integer |
| bigint=Long |
| float=Float |
| double=Double |
| decimal=BigDecimal |
| bit=Boolean |
| |
| char=String |
| varchar=String |
| tinytext=String |
| text=String |
| mediumtext=String |
| longtext=String |
| |
| |
| date=Date |
| datetime=Date |
| timestamp=Date |
| |
| NUMBER=Integer |
| INT=Integer |
| INTEGER=Integer |
| BINARY_INTEGER=Integer |
| LONG=String |
| FLOAT=Float |
| BINARY_FLOAT=Float |
| DOUBLE=Double |
| BINARY_DOUBLE=Double |
| DECIMAL=BigDecimal |
| CHAR=String |
| VARCHAR=String |
| VARCHAR2=String |
| NVARCHAR=String |
| NVARCHAR2=String |
| CLOB=String |
| BLOB=String |
| DATE=Date |
| DATETIME=Date |
| TIMESTAMP=Date |
| TIMESTAMP(6)=Date |
| |
| int8=Long |
| int4=Integer |
| int2=Integer |
| numeric=BigDecimal |
| |
| nvarchar=String |
3、启动项目,访问localhost

4、选中,生成代码
5、将代码粘入product项目中
6、common工程导入以来,product依赖common
7、导入生成代码中需要的类
8、其他表的逆向生成与product基本相同
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· SQL Server 2025 AI相关能力初探
· AI编程工具终极对决:字节Trae VS Cursor,谁才是开发者新宠?
· 开源Multi-agent AI智能体框架aevatar.ai,欢迎大家贡献代码
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南