JAVA代码生成,支持模板自定义,完美运行

上传者: houfeng30920 | 上传时间: 2021-05-25 11:58:08 | 文件大小: 69KB | 文件类型: ZIP
codeFactory 介绍: 1.codeFactory: Java代码生成,依赖rapid-generator.4.0.6.jar, 支持自定义模板生成代码, 弱业务下完全解放体力劳动. 2.ssm模板实现:pojo,dao,daoimpl,service,serviceimpl,controller,各mapper.xml 代码自动生成, 3.配置文件自动生(含:spring,springMVC,mybatis,web.xml); 代码完美运行. 使用: 1.配置generator.xml(key):basepackage,namespace,outRoot,jdbc_username,jdbc_password,jdbc_url(默认MySQL库) 2.CodeGenerator类g.generateByTable("tb_admin","tb_city");方法传参(table表名),支持批量传参和单表操作 3.main方法运行CodeGenerator类,在配置的outRoot输出路径找到生成代码,复制到对应项目包下.

文件下载

资源详情

[{"title":"( 68 个子文件 69KB ) JAVA代码生成,支持模板自定义,完美运行","children":[{"title":"codeFactory_Maven_Webapp","children":[{"title":".project <span style='color:#111;'> 1.69KB </span>","children":null,"spread":false},{"title":".mymetadata <span style='color:#111;'> 340B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"main","children":[{"title":"webapp","children":[{"title":"WEB-INF","children":[{"title":"classes","children":[{"title":"codefactory","children":[{"title":"CodeGenerator.class <span style='color:#111;'> 983B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"lib","children":null,"spread":false},{"title":"web.xml <span style='color:#111;'> 24.58KB </span>","children":null,"spread":false}],"spread":true},{"title":"index.jsp <span style='color:#111;'> 52B </span>","children":null,"spread":false},{"title":"META-INF","children":[{"title":"MANIFEST.MF <span style='color:#111;'> 39B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"resources","children":[{"title":"log4j.properties <span style='color:#111;'> 356B </span>","children":null,"spread":false},{"title":"generator.xml <span style='color:#111;'> 3.60KB </span>","children":null,"spread":false},{"title":"template","children":[{"title":"java_description.include <span style='color:#111;'> 54B </span>","children":null,"spread":false},{"title":"java_copyright.include <span style='color:#111;'> 189B </span>","children":null,"spread":false},{"title":"macro.include <span style='color:#111;'> 692B </span>","children":null,"spread":false},{"title":"java_imports.include <span style='color:#111;'> 35B </span>","children":null,"spread":false},{"title":"custom.include <span style='color:#111;'> 468B </span>","children":null,"spread":false},{"title":"ssm_project","children":[{"title":"${basepackage_dir}","children":[{"title":"service","children":[{"title":"impl","children":[{"title":"${className}ServiceImpl.java <span style='color:#111;'> 1.51KB </span>","children":null,"spread":false}],"spread":false},{"title":"I${className}Service.java <span style='color:#111;'> 874B </span>","children":null,"spread":false}],"spread":false},{"title":"pojo","children":[{"title":"${className}.java <span style='color:#111;'> 1.28KB </span>","children":null,"spread":false}],"spread":false},{"title":"controller","children":[{"title":"${className}Controller.java <span style='color:#111;'> 3.07KB </span>","children":null,"spread":false}],"spread":false},{"title":"mybatis_mapper","children":[{"title":"mapper","children":[{"title":"${className}Mapper.xml <span style='color:#111;'> 3.42KB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"dao","children":[{"title":"IBaseDao.java <span style='color:#111;'> 782B </span>","children":null,"spread":false},{"title":"I${className}Dao.java <span style='color:#111;'> 856B </span>","children":null,"spread":false},{"title":"impl","children":[{"title":"BaseDaoImpl.java <span style='color:#111;'> 1.57KB </span>","children":null,"spread":false},{"title":"${className}DaoImpl.java <span style='color:#111;'> 1.71KB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"web.xml <span style='color:#111;'> 1.36KB </span>","children":null,"spread":false},{"title":"pom.xml <span style='color:#111;'> 4.25KB </span>","children":null,"spread":false},{"title":"resources","children":[{"title":"beans.xml <span style='color:#111;'> 3.08KB </span>","children":null,"spread":false},{"title":"springmvc-servlet.xml <span style='color:#111;'> 1.88KB </span>","children":null,"spread":false},{"title":"sqlMapConfig.xml <span style='color:#111;'> 2.17KB </span>","children":null,"spread":false},{"title":"jdbc.properties <span style='color:#111;'> 413B </span>","children":null,"spread":false},{"title":"log4j.properties <span style='color:#111;'> 230B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":true}],"spread":true},{"title":"java","children":[{"title":"codefactory","children":[{"title":"CodeGenerator.java <span style='color:#111;'> 724B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"target","children":[{"title":"m2e-jee","children":[{"title":"web-resources","children":[{"title":"META-INF","children":[{"title":"MANIFEST.MF <span style='color:#111;'> 105B </span>","children":null,"spread":false},{"title":"maven","children":[{"title":"cn.hou","children":[{"title":"codeFactory","children":[{"title":"pom.properties <span style='color:#111;'> 254B </span>","children":null,"spread":false},{"title":"pom.xml <span style='color:#111;'> 1.62KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"classes","children":[{"title":"codefactory","children":[{"title":"CodeGenerator.class <span style='color:#111;'> 1014B </span>","children":null,"spread":false}],"spread":true},{"title":"log4j.properties <span style='color:#111;'> 356B </span>","children":null,"spread":false},{"title":"generator.xml <span style='color:#111;'> 3.60KB </span>","children":null,"spread":false},{"title":"template","children":[{"title":"java_description.include <span style='color:#111;'> 54B </span>","children":null,"spread":false},{"title":"java_copyright.include <span style='color:#111;'> 189B </span>","children":null,"spread":false},{"title":"macro.include <span style='color:#111;'> 692B </span>","children":null,"spread":false},{"title":"java_imports.include <span style='color:#111;'> 35B </span>","children":null,"spread":false},{"title":"custom.include <span style='color:#111;'> 468B </span>","children":null,"spread":false},{"title":"ssm_code","children":[{"title":"${basepackage_dir}","children":[{"title":"service","children":[{"title":"impl","children":null,"spread":false}],"spread":false},{"title":"pojo","children":null,"spread":false},{"title":"controller","children":null,"spread":false},{"title":"dao","children":[{"title":"impl","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"ssm_project","children":[{"title":"${basepackage_dir}","children":[{"title":"service","children":[{"title":"impl","children":[{"title":"${className}ServiceImpl.java <span style='color:#111;'> 1.51KB </span>","children":null,"spread":false}],"spread":false},{"title":"I${className}Service.java <span style='color:#111;'> 874B </span>","children":null,"spread":false}],"spread":false},{"title":"pojo","children":[{"title":"${className}.java <span style='color:#111;'> 1.28KB </span>","children":null,"spread":false}],"spread":false},{"title":"controller","children":[{"title":"${className}Controller.java <span style='color:#111;'> 3.07KB </span>","children":null,"spread":false}],"spread":false},{"title":"mybatis_mapper","children":[{"title":"mapper","children":[{"title":"${className}Mapper.xml <span style='color:#111;'> 3.42KB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"dao","children":[{"title":"IBaseDao.java <span style='color:#111;'> 782B </span>","children":null,"spread":false},{"title":"I${className}Dao.java <span style='color:#111;'> 856B </span>","children":null,"spread":false},{"title":"impl","children":[{"title":"BaseDaoImpl.java <span style='color:#111;'> 1.57KB </span>","children":null,"spread":false},{"title":"${className}DaoImpl.java <span style='color:#111;'> 1.71KB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"web.xml <span style='color:#111;'> 1.36KB </span>","children":null,"spread":false},{"title":"pom.xml <span style='color:#111;'> 4.25KB </span>","children":null,"spread":false},{"title":"resources","children":[{"title":"beans.xml <span style='color:#111;'> 3.08KB </span>","children":null,"spread":false},{"title":"springmvc-servlet.xml <span style='color:#111;'> 1.88KB </span>","children":null,"spread":false},{"title":"sqlMapConfig.xml <span style='color:#111;'> 2.17KB </span>","children":null,"spread":false},{"title":"jdbc.properties <span style='color:#111;'> 413B </span>","children":null,"spread":false},{"title":"log4j.properties <span style='color:#111;'> 230B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":true}],"spread":true},{"title":"test-classes","children":null,"spread":false}],"spread":true},{"title":".settings","children":[{"title":"org.eclipse.wst.jsdt.ui.superType.container <span style='color:#111;'> 49B </span>","children":null,"spread":false},{"title":"org.eclipse.wst.common.project.facet.core.xml <span style='color:#111;'> 252B </span>","children":null,"spread":false},{"title":"org.eclipse.m2e.core.prefs <span style='color:#111;'> 90B </span>","children":null,"spread":false},{"title":"org.eclipse.jdt.core.prefs <span style='color:#111;'> 430B </span>","children":null,"spread":false},{"title":"org.eclipse.wst.jsdt.ui.superType.name <span style='color:#111;'> 6B </span>","children":null,"spread":false},{"title":"com.genuitec.eclipse.j2eedt.core.prefs <span style='color:#111;'> 56B </span>","children":null,"spread":false},{"title":"org.eclipse.core.resources.prefs <span style='color:#111;'> 170B </span>","children":null,"spread":false},{"title":"org.eclipse.wst.common.component <span style='color:#111;'> 612B </span>","children":null,"spread":false},{"title":".jsdtscope <span style='color:#111;'> 508B </span>","children":null,"spread":false}],"spread":true},{"title":"pom.xml <span style='color:#111;'> 1.62KB </span>","children":null,"spread":false},{"title":".classpath <span style='color:#111;'> 605B </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

  • blog_Shao :
    很不错的代码,特别是模板;
    2018-07-10
  • 大叔级的帅锅锅 :
    可以用,改改就称自己的了
    2018-02-05
  • 半个鼠标 :
    还没有真正去看过
    2017-01-09

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明