Documentation

March 30, 2026 · View on GitHub

Spring CRUD Generator is a Maven plugin that generates production-ready Spring Boot CRUD layers (REST + optional GraphQL), database migrations, Docker resources, tests, API docs, and more — from a single YAML/JSON specification file.

This directory contains the full project documentation.

Start here

What you will find here

  • Setup and first run instructions
  • Full configuration reference
  • Entity and field schema
  • Package customization
  • Migration and incremental generation behavior
  • Schema and example specs

Minimal examples

SQL (PostgreSQL / MySQL / MariaDB / MSSQL)

configuration:
  database: postgresql
entities:
  - name: ProductModel
    storageName: product_table
    fields:
      - name: id
        type: Long
        id:
          strategy: IDENTITY
      - name: name
        type: String
        column:
          nullable: false
          unique: true

MongoDB

configuration:
  database: mongodb
entities:
  - name: ProductModel
    storageName: products
    fields:
      - name: id
        type: String
        id: true
      - name: name
        type: String
        validation:
          required: true
          notBlank: true

Full examples: SQL spec · MongoDB spec

Back to the main project page: README