Spring CRUD Generator v1.3.0 Released 🚀
Source: Dev.to
MariaDB Support + Optional Null Exclusion in REST Responses
I’ve just released Spring CRUD Generator v1.3.0 🎉
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
Optionally it can also generate:
- 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.
Database Compatibility
The generator is now fully compatible with MariaDB, in addition to:
- MySQL
- PostgreSQL
- MSSQL
Supporting MariaDB includes updates across the ecosystem:
- Flyway scripts
- Docker Compose setup
- Database compatibility support in both the generator and the generated code
If you’re using MariaDB, you can now use the generator without workarounds.
REST Response Null Exclusion
A new property is available:
rest.response.excludeNull=true
When enabled, generated REST responses will exclude null fields from the JSON output. This provides:
- Cleaner API responses
- Smaller payloads
- More controlled serialization behavior
Compatible with:
- Spring Boot 3
- Spring Boot 4
Additional Context
- MariaDB support was a natural next step after MySQL, PostgreSQL, and MSSQL compatibility.
- Many APIs prefer not returning null fields, so a generator‑level switch makes sense.
This release focuses on making the generated projects more practical for real‑world setups.
Resources
- Repository:
- Release (v1.3.0):
- Demo project:
Feedback
Feedback is welcome 🙌. If you try it, I’d appreciate comments on:
- MariaDB compatibility
- Flyway script behavior
rest.response.excludeNullbehavior in generated APIs
I’m also happy to discuss implementation details and trade‑offs behind the generator.