mybatis-generate mybatis3数据库代码生成工具,生成controller\service\mapper等等。。

上传者: a393060727 | 上传时间: 2021-09-14 16:48:11 | 文件大小: 52KB | 文件类型: ZIP
本生成工具是maven版本。 mybatis3版本生成数据库表工具,能支持oracle、mysql。 使用简单,配置简单。 主类在GeneratorMain,只要指定几个关键点,输出路径,输入表名,上级包名,就能生成代码后,直接复制到工程中,生成类中结构清晰,注释完整。 /** * 生成演示 */ public static void main(String[] args) { String outputDir = "d:/code/my";//此文件夹会生成到D:目录下 String[] tables = {"sys_dic"}; String packageParent = "com.my.cloud.cms.module.search"; GeneratorMain generatorMain = new GeneratorMain(); generatorMain.generateMain(outputDir, tables, packageParent); } 生成的代码就在 d:/code/my 下。 使用遇到问题,咨询我:a393060727@163.com

文件下载

资源详情

[{"title":"( 46 个子文件 52KB ) mybatis-generate mybatis3数据库代码生成工具,生成controller\\service\\mapper等等。。","children":[{"title":"mybatis-generate","children":[{"title":"pom.xml <span style='color:#111;'> 2.44KB </span>","children":null,"spread":false},{"title":"src","children":[{"title":"test","children":[{"title":"java","children":null,"spread":false}],"spread":true},{"title":"main","children":[{"title":"resources","children":[{"title":"generator-config","children":[{"title":"application.properties <span style='color:#111;'> 874B </span>","children":null,"spread":false}],"spread":true},{"title":"templates","children":[{"title":"entity.java.vm <span style='color:#111;'> 1.51KB </span>","children":null,"spread":false},{"title":"controller.java.vm <span style='color:#111;'> 3.71KB </span>","children":null,"spread":false},{"title":"service.java.vm <span style='color:#111;'> 251B </span>","children":null,"spread":false},{"title":"dto.java.vm <span style='color:#111;'> 263B </span>","children":null,"spread":false},{"title":"sqlMap.xml.vm <span style='color:#111;'> 1.01KB </span>","children":null,"spread":false},{"title":"serviceImpl.java.vm <span style='color:#111;'> 523B </span>","children":null,"spread":false},{"title":"mapper.java.vm <span style='color:#111;'> 169B </span>","children":null,"spread":false},{"title":"baseService.java.vm <span style='color:#111;'> 1.10KB </span>","children":null,"spread":false}],"spread":true},{"title":"mybatis-generator","children":[{"title":"generatorConfig.xml <span style='color:#111;'> 2.06KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"java","children":[{"title":"base","children":[{"title":"PageRequest.java <span style='color:#111;'> 1.21KB </span>","children":null,"spread":false},{"title":"PageResult.java <span style='color:#111;'> 1.30KB </span>","children":null,"spread":false},{"title":"PageUtils.java <span style='color:#111;'> 716B </span>","children":null,"spread":false},{"title":"BaseEntity.java <span style='color:#111;'> 406B </span>","children":null,"spread":false},{"title":"BaseServiceImpl.java <span style='color:#111;'> 1.46KB </span>","children":null,"spread":false},{"title":"BaseMapper.java <span style='color:#111;'> 2.46KB </span>","children":null,"spread":false},{"title":"BaseService.java <span style='color:#111;'> 1.22KB </span>","children":null,"spread":false},{"title":"BaseController.java <span style='color:#111;'> 701B </span>","children":null,"spread":false}],"spread":true},{"title":"generator","children":[{"title":"config","children":[{"title":"po","children":[{"title":"TableInfo.java <span style='color:#111;'> 6.60KB </span>","children":null,"spread":false},{"title":"TableField.java <span style='color:#111;'> 3.09KB </span>","children":null,"spread":false}],"spread":true},{"title":"converts","children":[{"title":"SqlServerTypeConvert.java <span style='color:#111;'> 1.30KB </span>","children":null,"spread":false},{"title":"PostgreSqlTypeConvert.java <span style='color:#111;'> 1.34KB </span>","children":null,"spread":false},{"title":"OracleTypeConvert.java <span style='color:#111;'> 1.16KB </span>","children":null,"spread":false},{"title":"MySqlTypeConvert.java <span style='color:#111;'> 1.33KB </span>","children":null,"spread":false}],"spread":true},{"title":"GlobalConfig.java <span style='color:#111;'> 3.19KB </span>","children":null,"spread":false},{"title":"StrategyConfig.java <span style='color:#111;'> 5.71KB </span>","children":null,"spread":false},{"title":"toolkit","children":[{"title":"StringUtils.java <span style='color:#111;'> 16.80KB </span>","children":null,"spread":false},{"title":"CollectionUtils.java <span style='color:#111;'> 582B </span>","children":null,"spread":false},{"title":"IntfSqlMapUtil.java <span style='color:#111;'> 8.16KB </span>","children":null,"spread":false},{"title":"StringEscape.java <span style='color:#111;'> 3.56KB </span>","children":null,"spread":false}],"spread":false},{"title":"FileOutConfig.java <span style='color:#111;'> 610B </span>","children":null,"spread":false},{"title":"TemplateConfig.java <span style='color:#111;'> 1.66KB </span>","children":null,"spread":false},{"title":"builder","children":[{"title":"ConfigBuilder.java <span style='color:#111;'> 20.41KB </span>","children":null,"spread":false}],"spread":false},{"title":"PackageConfig.java <span style='color:#111;'> 2.33KB </span>","children":null,"spread":false},{"title":"ITypeConvert.java <span style='color:#111;'> 344B </span>","children":null,"spread":false},{"title":"ConstVal.java <span style='color:#111;'> 2.51KB </span>","children":null,"spread":false},{"title":"DataSourceConfig.java <span style='color:#111;'> 3.23KB </span>","children":null,"spread":false},{"title":"rules","children":[{"title":"NamingStrategy.java <span style='color:#111;'> 3.04KB </span>","children":null,"spread":false},{"title":"DbType.java <span style='color:#111;'> 338B </span>","children":null,"spread":false},{"title":"DbColumnType.java <span style='color:#111;'> 1.16KB </span>","children":null,"spread":false},{"title":"QuerySQL.java <span style='color:#111;'> 5.44KB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"AutoGenerator.java <span style='color:#111;'> 13.81KB </span>","children":null,"spread":false},{"title":"AbstractGenerator.java <span style='color:#111;'> 2.43KB </span>","children":null,"spread":false},{"title":"InjectionConfig.java <span style='color:#111;'> 1.09KB </span>","children":null,"spread":false}],"spread":true},{"title":"main","children":[{"title":"GeneratorMain.java <span style='color:#111;'> 5.62KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}]

评论信息

免责申明

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