GithubHelp home page GithubHelp logo

shiverzm / viewgenerator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dolyw/viewgenerator

0.0 1.0 0.0 1.25 MB

可视化DIY模板代码生成系统

Home Page: https://note.dolyw.com

License: MIT License

Java 16.41% JavaScript 6.19% Vue 2.11% CSS 67.88% HTML 7.41%

viewgenerator's Introduction

ViewGenerator

License PRs Welcome GitHub stars GitHub forks

可视化自定义模板代码生成系统

项目相关

版本 描述
SpringBoot1.5 Test类生成代码
SpringBoot2.1 可视化界面及Test类两种
SpringBoot2.5 可视化界面及Test类,在线切换数据库

项目介绍

ViewGenerator是一个基于SpringBoot & FreeMarker的自定义模板代码生成系统,用于快速构建中小型项目,稳定、简单、快速,使我们摆脱那些重复劳动,专注于业务代码的编写,能在短短几十秒钟内实现一套简单的基础代码(自动生成Model、Mapper、MapperXML、Service、ServiceImpl、Controller、JS、Vue等自定义模板代码)

  1. 可视化界面,上手操作简单
  2. 高度灵活的代码模板配置(提供两套模板参考),可以自行添加N套代码模板
  3. 支持多数据库,在线切换数据库,支持在线生成代码且可提供ZIP文件下载

软件架构

SpringBoot + Mybatis + PageHelper + 通用Mapper + Thymeleaf(Amaze UI(布局) + Element UI(数据操作Vue.js))

安装教程

  1. 配置resource下config/generator.properties数据库信息启动Application即可,也可以本地直接执行Test类在src\test\java\com\example\generator\GeneratorCode
  2. 模板提供两套示例LayUI和RESTful,自行添加模板路径\template\
  3. 可视化界面操作访问http://localhost:8080,可以在线设置生成代码的配置
  4. 服务器部署,下载代码到本地打包成jar包上传到服务器启动即可
  5. 服务器部署后需要自行复制template文件夹到与jar包同级目录下

使用说明

数据库要配置好,且必须有帐号权限(resource下config/generator.properties数据库信息)
系统预览
启动首页界面

image text

生成代码界面如下

image text

查看表详细信息界面如下

image text

输入表名生成代码界面如下

image text

配置更新界面如下

image text

搭建参考

  1. 感谢zeng1994的Java实现将文件或者文件夹压缩成zip:https://www.cnblogs.com/zeng1994/p/7862288.html

参与贡献

  1. Fork 本项目
  2. 新建 Feat_xxx 分支
  3. 提交代码
  4. 新建 Pull Request

viewgenerator's People

Contributors

dolyw avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.