SpringBootCodeGenerator turns DDL, insert, select SQL, or JSON into Java stack code via Freemarker templates. It targets MySQL, Oracle, and PostgreSQL.
Overview
SpringBootCodeGenerator is a browser-facing code generation platform built on Spring Boot and Freemarker. Developers paste schema or data definitions and receive scaffolded Java artifacts for common persistence and UI stacks instead of writing repetitive CRUD by hand.
Input modes include create-table DDL, insert statements, select queries, and simple JSON structures. Template outputs cover JPA, JdbcTemplate, MyBatis, MyBatis-Plus, BeetlSQL, CommonMapper, TkMyBatis, and assorted front-end UI snippets such as Element UI and Bootstrap layouts. Configuration covers package names, author strings, naming conventions, Lombok usage, Swagger toggles, and table prefix stripping.
The web UI remembers recent generations, supports local or CDN static assets for offline-friendly use, and can bundle all generated files into a ZIP download grouped by template type. Custom templates live under resource directories with metadata in a template manifest file.
Teams run the application as a local Spring Boot server to access the generator UI and REST endpoints, including a ZIP download API that mirrors the on-screen generate action.
Key features
- DDL, INSERT, SELECT, and JSON inputs
- JPA, MyBatis, and Plus templates
- JdbcTemplate and BeetlSQL output
- Element and Bootstrap UI snippets
- One-click ZIP code download
- Custom Freemarker templates
- MySQL, Oracle, PostgreSQL support
- Configurable naming and packages
Use cases
- Bootstrapping CRUD from SQL DDL
- Rapid MyBatis mapper generation
- Teaching SQL-to-Java mapping patterns