All Projects → huzhicheng → kite-mybatis-builder

huzhicheng / kite-mybatis-builder

Licence: other
web 形式的mybatis 生成器

Programming Languages

java
68154 projects - #9 most used programming language
FreeMarker
481 projects
CSS
56736 projects

Projects that are alternatives of or similar to kite-mybatis-builder

Spring Boot Vue Bank
我,请始皇[打钱]是一个前后端分离的工具人系统,项目采用 SpringBoot+Go+Vue 开发,项目加入常见的企业级应用所涉及到的技术点,例如 Redis、RabbitMQ 等(主要是多用用工具多踩踩坑)。
Stars: ✭ 157 (+170.69%)
Mutual labels:  mybatis, mybatis-generator
mall
SpringBoot + Layui 电子商城系统
Stars: ✭ 38 (-34.48%)
Mutual labels:  mybatis, mybatis-generator
Priest
dubbo mybatis springboot base soa rest api framework with customer code generator
Stars: ✭ 160 (+175.86%)
Mutual labels:  mybatis, mybatis-generator
Mybatiscodehelper Pro
brucege.com
Stars: ✭ 1,565 (+2598.28%)
Mutual labels:  mybatis, mybatis-generator
atguigu ssm crud
Atguigu-SSM-CRUD 一个最基本的CRUD系统,采用IDEA+Maven搭建,具备前后端交互功能,前端采用BootStrap+Ajax异步请求DOM渲染,后端采用SpringMVC+MyBatis+Mysql8.0+Servlet+Jsp,符合REST风格URL规范,并加入了Hibernate提供的数据校验功能,支持PageHelper的分页功能,很适合SSM阶段性练习。同时用到了很多前端操作以及BootStrap组件,也有利于学习JS和前端框架。
Stars: ✭ 52 (-10.34%)
Mutual labels:  mybatis, mybatis-generator
Community
开源论坛、问答系统,现有功能提问、回复、通知、最新、最热、消除零回复功能。功能持续更新中…… 技术栈 Spring、Spring Boot、MyBatis、MySQL/H2、Bootstrap
Stars: ✭ 1,947 (+3256.9%)
Mutual labels:  mybatis, mybatis-generator
Spring Cloud Shop
spring cloud 版分布式电商项目,全力打造顶级多模块,高可用,高扩展电商项目
Stars: ✭ 248 (+327.59%)
Mutual labels:  mybatis, mybatis-generator
Mybatis Tools
Stars: ✭ 14 (-75.86%)
Mutual labels:  mybatis, mybatis-generator
mybatis-generator-gui-plus
基于MyBatis-Generator+SQLite+beautyeye_lnf开发的一款图形化代码生成器
Stars: ✭ 16 (-72.41%)
Mutual labels:  mybatis, mybatis-generator
lightbatis
Lightbatis 增强 MyBatis 版Java 数据库持久层,更简洁并易用
Stars: ✭ 52 (-10.34%)
Mutual labels:  mybatis, mybatis-generator
Eshop Soa
EShop基于Dubbo实现SOA服务化拆分,并基于RocketMQ解决了分布式事务(新版SpringBootSOASkeleton)
Stars: ✭ 65 (+12.07%)
Mutual labels:  mybatis, mybatis-generator
gd-generator
A code generator that elegantly generates mybatis ORM (mapper and xml config) and intelligently retains user-defined mapper and xml, automatically creates/synchronizes database tables, and records and prints exactly after each domain model change Database repair sql, support for the production of a variety of complex VO (View Object) objects, al…
Stars: ✭ 82 (+41.38%)
Mutual labels:  mybatis, mybatis-generator
Mybatis Generator Plugin
Mybatis Generator 代码生成插件拓展,增加:查询单条数据插件(SelectOneByExamplePlugin)、MySQL分页插件(LimitPlugin)、数据Model链式构建插件(ModelBuilderPlugin)、Example Criteria 增强插件(ExampleEnhancedPlugin)、Example 目标包修改插件(ExampleTargetPlugin)、批量插入插件(BatchInsertPlugin)、逻辑删除插件(LogicalDeletePlugin)、数据Model属性对应Column获取插件(ModelColumnPlugin)、存在即更新(UpsertPlugin)、Selective选择插入更新增强插件(SelectiveEnhancedPlugin)、Table增加前缀插件(TableSuffixPlugin)、自定义注释插件(CommentPlugin)、增量插件(IncrementsPlugin)、查询结果选择性返回插件(SelectSelectivePlugin)、乐观锁插件(OptimisticLockerPlugin)、LombokPlugin等拓展。
Stars: ✭ 1,038 (+1689.66%)
Mutual labels:  mybatis, mybatis-generator
Mybatis Plus Example
SpringBoot整合MyBatis-Plus,源码学习,增删改查,Lamdba支持
Stars: ✭ 128 (+120.69%)
Mutual labels:  mybatis, mybatis-generator
Mybatis Generator Core
mybatis-generator-core mybatis自动生成代码工具、ibatis自动生成代码工具,自己定制了下。
Stars: ✭ 40 (-31.03%)
Mutual labels:  mybatis, mybatis-generator
Roncoo Mybatis Generator
龙果开源-Mybatis代码自动生成工具
Stars: ✭ 165 (+184.48%)
Mutual labels:  mybatis, mybatis-generator
Generator
A code generator for MyBatis.
Stars: ✭ 4,847 (+8256.9%)
Mutual labels:  mybatis, mybatis-generator
Mybatis Generator Gui Extension
图形化MBG,内置丰富插件,可生成Service、Controller、View,配置简单。 A powerful GUI tool for MyBatisGenerator(MBG)
Stars: ✭ 583 (+905.17%)
Mutual labels:  mybatis, mybatis-generator
IDEAPractice
Java练习 - Java基础知识,面试题,小demo,长期积累 | intellij idea + maven + tomcat
Stars: ✭ 45 (-22.41%)
Mutual labels:  mybatis, mybatis-generator
AllInOneFX
All In One JavaFX Application with a curated list of awesome JavaFX libraries, frameworks
Stars: ✭ 26 (-55.17%)
Mutual labels:  mybatis, mybatis-generator

mybatis 官方提供了 MyBatis Generator ,可以通过 xml 配置文件的方式使用,例如自己写调用脚本,或者使用 mvn 插件的方式,其实实现起来还是很简 单的。虽然简单,但还是不够简单,懒嘛,这不就实现了一个更简单的生成方式,通过 web 页面的方式,填写几个关键的配置参数,选好要生成的数据库表即可。

可配置的参数有如下几个

targetRuntime :MyBatis3、MyBatis3Simple、Ibatis2Java2、Ibatis2Java5,默认为 MyBatis3

是否取消注释:生成的文件中默认会有注释内容,可以选择是否取消。

targetProject(文件生成目录):文件最后保存的目录,选择一个本地磁盘上的目录位置。

实体类包名:实体对象的包名。

mapper.xml文件所在目录:xml 文件所在的目录

mapper接口类包名:mapper 接口类的包名

数据库驱动:目前只支持 mysql

数据库连接字符串、数据库用户、数据库用户密码:数据库相关配置

启动方式

方式1:

直接下载源码,然后运行 BuilderApplication 文件,或者使用 mvn 的 spring-boot:run 方式运行

方式2:

下载 kite-mybatis-builder.jar, 运行命令 java -jar -Dserver.port=[port] kite-mybatis-builder.jar 或者 java -jar kite-mybatis-builder.jar 默认在 9090 端口运行

使用方式

如果运行在默认的 9090 端口,打开浏览器访问 http://localhost:9090

  1. 默认打开之后,点击“新建项目”。

mybatis-1

  1. 在弹出的项目配置界面,填写上面提到的配置参数

mybatis-2

  1. 选择要生成的表,并可在后面配置实体名称,默认规则是各单词首字母大写。

mybatis-3

  1. 点击生成按钮,会根据生成结果提示成功或失败。

  2. 生成过的项目会在首页列出来,下次如果还需要生成此数据库的表,可以在之前的项目中重新配置选择即可。

mybatis-4

支持分页查询

分页插件来自:https://github.com/wucao/mybatis-generator-limit-plugin 例如:

        UserExample userExample = new UserExample();
        userExample.setLimit(5);
        userExample.setOffset(5);
        userExample.setOrderByClause(" id desc ");
        List<User> users = userMapper.selectByExample(userExample);

支持去掉指定表名前缀

例如表名统一以 w_ 为前缀,则在配置界面可以输入去掉的前缀为 w_,则读取数据库表后,默认生成的实体名字就是去掉前缀的。 例如表名 w_user,如果不去掉前缀,默认生成的实体名为 WUser。去掉前缀后就是 User。

可以配置 mysql 的 Timestamp 是否转为 Date

有些需求中,Timestamp 可能需要转为 Java 类型的 Date,可以在界面中配置。 打钩"是否Timestamp转为Date",则将 Timestamp 转为 Date,否则转为 Java 的 Timestamp 类型。 微信公众号二维码

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].