DEV Community

Marko
Marko

Posted on

Spring CRUD Generator v1.3.0 Released - MariaDB support + Optional Null Exclusion in REST Responses

I’ve just released Spring CRUD Generator v1.3.0 🎉

If you haven’t seen it before, Spring CRUD Generator is an open-source Maven plugin that generates Spring Boot CRUD code from a YAML/JSON project config — including:

  • entities
  • transfer objects (DTOs)
  • mappers
  • services and business services
  • controllers

…and optionally:

  • OpenAPI/Swagger resources
  • GraphQL resolvers
  • Flyway migrations
  • Docker resources

The goal is simple: generate the repetitive CRUD boilerplate fast, keep the structure consistent, and let you focus on business logic.


What’s new in v1.3.0

✅ Full MariaDB support

The generator is now fully compatible with MariaDB, in addition to:

  • MySQL
  • PostgreSQL
  • MSSQL

This release also includes related updates for MariaDB support across the ecosystem around the generator:

  • Flyway scripts
  • Docker Compose setup
  • Database compatibility support in the generator and generated code

If you’re using MariaDB in your projects, you can now use the generator without workarounds.


✅ New property: rest.response.excludeNull

A new additional property is now available:

rest.response.excludeNull=true
Enter fullscreen mode Exit fullscreen mode

When enabled, generated REST responses will exclude null fields from JSON output.

This is useful when you want:

  • cleaner API responses
  • smaller payloads
  • more controlled serialization behavior

It’s compatible with:

  • Spring Boot 3
  • Spring Boot 4

Why I added this

Two things kept coming up:

  1. MariaDB support was a natural next step after MySQL/PostgreSQL/MSSQL compatibility.
  2. In many APIs, people prefer not returning null fields in responses — so adding a generator-level switch made sense.

This release is focused on making the generated projects more practical for real-world setups.

Links

Feedback welcome 🙌

If you try it, I’d really appreciate feedback — especially on:

  • MariaDB compatibility
  • Flyway script behavior
  • rest.response.excludeNull behavior in generated APIs

Also happy to discuss implementation details and tradeoffs behind the generator.

Top comments (0)