0 Star 1 Fork 0

maoning / lazyframework-generator

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

lazyframework-generator

项目介绍

SpringBoot + Freemarker技术实现的界面化、可定制的代码生成工具,如果需要扩展其它持久层框架的代码生成,只需要添加一个类实现GenerateProvider接口。

默认使用MyBatisPlus作为持久层框架,分页并未使用MyBatisPlus而是选择了PageHelper,个人觉得这个更好用。生成的代码注释也是非常完善的,Controller层遵循RESTfull API规范,并提供SwaggerUI接口文档支持。

注意:此项目依赖于lazyframework基础库lazyframework,引入方法在该项目中有说明。

更新日志

2020.09.03:

  1. 适配MP的逻辑删除功能。
  2. 修复不同库中存在相同表名是生成的对象包含所有同名表字段的问题。

界面截图

操作界面

安装使用

  1. git clone https://gitee.com/maonings/lazyframework-generator.git
  2. 修改application.yml数据库用户名密码。
  3. 启动SpringBoot应用,浏览器访问:http://localhost:8888端口。
  4. 填完左侧栏目点击生成后,默认会在${user.home}/Generator/目录下输出代码。拷贝到项目即可,当然这个输出路径是可以修改的,只需要在Provider中调用父类带参数的构造函数即可。甚至完全可以提供自己的Provider来实现不持久层框架代码的生成。 修改默认输出位置
MIT License Copyright (c) 2020 maoning Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

有界面的代码生成工具 展开 收起
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/maonings/lazyframework-generator.git
git@gitee.com:maonings/lazyframework-generator.git
maonings
lazyframework-generator
lazyframework-generator
master

搜索帮助