2 Star 9 Fork 5

鱼凫 / code-generator-gui

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

code-generator-gui

一个自带GUI的代码生成器

最新版本:下载 v0.1.2

  1. 通过读取数据库表结构,根据提供的模板生成代码,如java MVC各层增删查改代码、前端数据维护页面代码、Mybatis的mapper.xml映射文件,等等。

  2. 可扩展支持其他数据库或其他数据结构源。已支持的数据库包括:

    • MySQL(内建支持)
    • MsSql(SQLServer)
    • Oracle
    • SybaseASE15
    • HsqlDb
    • McKoi
    • Derby
    • PostgreSql
    • Interbase
    • MaxDB
    • Firebird
    • Cloudscape
    • Sybase
    • DB2
    • Axion
    • SapDB
  3. 仅支持freemarker模板,模板文件名需以.ftl结尾,目前支持的模板变量:https://chris-peng.github.io/code-generator-gui/dbContext-data-model.txt

    这里有2个模板的例子:

    如你所见,文件名也可以是模板。生成的代码文件名将在应用模板后自动去除ftl后缀。

使用指南:

  1. 设置好各个选项,注意:MySql的连接串建议加上useInformationSchema=true选项,以读取表注释: 选项
  2. 点击"GENERATE"按钮生成代码: 生成
  3. 可以把当前配置保存待用: 配置

模板和生成的代码:

生成

MIT License Copyright (c) 2020 chris-peng 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.

简介

一个自带GUI的代码生成器 展开 收起
Java
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Java
1
https://gitee.com/phf/code-generator-gui.git
git@gitee.com:phf/code-generator-gui.git
phf
code-generator-gui
code-generator-gui
master

搜索帮助