# codefactory **Repository Path**: houfeng30920/codefactory ## Basic Information - **Project Name**: codefactory - **Description**: 模板生成代码工具 - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 5 - **Created**: 2018-01-29 - **Last Updated**: 2021-02-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # codefactory 支持自定义模板生成代码, 弱业务下解放体力劳动 Spring SpringMVC Mybatis 模板代码生成 使用: 1.配置 generator.xml:basepackage, namespace, outRoot, jdbc_username, jdbc_password, jdbc_url(默认MySQL库), outRoot输出路径 2.CodeGenerator类 g.generateByTable("table表名","table表名"); 支持批量和单表 3.main方法运行CodeGenerator类, 在配置的outRoot输出路径找到生成代码, 复制到对应项目包下. 页面${page.list}获取绑定值.