spring-boot-pro-crud
Installation
SKILL.md
Spring Boot Professional CRUD (Nivel Pro)
Overview
Elevate the standard CRUD API to a professional level by completely decoupling the database layer from the client. This skill implements the DTO Pattern using immutable Java Records, automates the mapping process intelligently with MapStruct, and controls all error outputs via a Global Exception Handler (@RestControllerAdvice).
When to Use
- When building enterprise-ready REST APIs.
- When you need to hide sensitive database fields (like
id,createdAt,password) from the API output. - When validating input data securely without polluting the Entity model.
- When you want to eliminate the "Whitelabel Error Page" and return standardized JSON error messages instead.
- Trigger phrases: "implement pro level CRUD for [Entity]", "crear CRUD profesional con DTOs y MapStruct", "refactorizar a nivel pro con manejo de excepciones".
Instructions
Follow these steps strictly to implement the Pro CRUD pattern: