ViewGenerator
Visual custom template code generation system
Project related
Version | describe |
---|
SpringBoot1.5 | Test class generates code |
SpringBoot2.1 | Visual interface and Test class |
SpringBoot2.5 | Visual interface and Test class, online switching database |
Project introduction
ViewGenerator is a custom template code generation system based on SpringBoot & FreeMarker. It is used to quickly build small and medium-sized projects. It is stable, simple and fast. It allows us to get rid of repetitive work and focus on writing business code. It can be done in just tens of seconds. Implement a set of simple basic codes within the clock (automatically generate custom template codes such as Model, Mapper, MapperXML, Service, ServiceImpl, Controller, JS, Vue, etc.)
- Visual interface, easy to use
- Highly flexible code template configuration (two sets of templates are provided for reference), you can add N sets of code templates by yourself
- Supports multiple databases, switches databases online, supports online code generation and can provide ZIP file downloads
software architecture
SpringBoot + Mybatis + PageHelper + Universal Mapper + Thymeleaf (Amaze UI (layout) + Element UI (data operation Vue.js))
Installation tutorial
- Just start the Application by config/generator.properties database information under the resource configuration, or you can directly execute the Test class locally in srctestjavacomexamplegeneratorGeneratorCode
- The template provides two sets of examples LayUI and RESTful. Add the template path template by yourself.
- For visual interface operation, access http://localhost:8080 and you can set the configuration of generated code online.
- For server deployment, download the code and package it locally into a jar package and upload it to the server for startup.
- After the server is deployed, you need to copy the template folder to the same directory as the jar package.
Instructions for use
数据库要配置好,且必须有帐号权限(resource下config/generator.properties数据库信息)
System preview
Build reference
- Thanks to zeng1994's Java implementation of compressing files or folders into zip: https://www.cnblogs.com/zeng1994/p/7862288.html
Participate and contribute
- Fork this project
- Create a new Feat_xxx branch
- Submit code
- New Pull Request