# 自动代码生成 **Repository Path**: wang_lf/autoCode ## Basic Information - **Project Name**: 自动代码生成 - **Description**: 自动代码生成 研究 - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2020-08-30 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 自动代码生成 #### 介绍 自动代码生成 研究 #### 软件架构 properties/typeConverter.properties 文件为 数据库类型 与 java类型的映射 #### 使用说明 修改 src\main\java\com\wlf\generate\Execute.java 中的main方法 项目名、包名、数据库链接就不在解释; 需要修改: //模板路径 String templatePath = "C:\\Users\\Administrator\\Desktop\\github\\test\\autoCode\\模板\\springbootTemplate"; //文件输出路径 String outPath = "C:\\Users\\Administrator\\Desktop\\github\\test\\code"; 改为本地的全路径,运行即可; 如果需要定制模板,修改springbootTemplate相应的模板; 如有报错,百分之八九十为 数据库的类型 与 java类型的映射没有,在properties/typeConverter.properties中添加即可;