spring-boot-crud-patterns

Generate CRUD workflows for Spring Boot 3 services with Spring Data JPA.

2|Updated Jan 5, 2024
One-click install
npx skills add https://github.com/wilfriedago/dotfiles --skill spring-boot-crud-patterns-wilfriedago
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: spring-boot-crud-patterns
Source: https://github.com/wilfriedago/dotfiles/tree/main/agents/skills/spring-boot-crud-patterns
Command: npx skills add https://github.com/wilfriedago/dotfiles --skill spring-boot-crud-patterns-wilfriedago

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill streamlines the creation of feature-aligned CRUD (Create, Read, Update, Delete) services for Spring Boot 3 applications, ensuring a clean separation of concerns and adherence to modern architectural patterns.

Core Features & Use Cases

  • Feature-Focused Architecture: Organizes code into domain, application, presentation, and infrastructure layers per feature.
  • Spring Data JPA Integration: Provides patterns for implementing repositories and entities with Spring Data JPA.
  • REST API Development: Guides the creation of DTOs, controllers, and validation for RESTful endpoints.
  • Use Case: When developing a new microservice for managing products, use this Skill to scaffold the necessary components for CRUD operations, including the domain model, repository, service layer, and REST controller.

Quick Start

Use the spring-boot-crud-patterns skill to implement a Spring CRUD controller for a new product entity.

Frequently Asked Questions about spring-boot-crud-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I structure a Spring Boot REST API using DDD-inspired architecture?

To structure a Spring Boot REST API with DDD-inspired architecture, separate code into domain, application, presentation, and infrastructure layers per feature. This Skill generates repeatable CRUD workflows by organizing aggregates, repositories, controllers, and DTOs into these distinct feature-focused packages.

What's the best way to scaffold CRUD operations for a Spring Data JPA entity?

The best way to scaffold CRUD operations for Spring Data JPA entities is to generate feature-aligned repositories, domain models, service layers, and REST controllers together. This Skill automates creating those components with proper separation of concerns for create, read, update, and delete endpoints.

Does this Spring Boot CRUD pattern support request validation and DTO records?

Yes, this Spring Boot CRUD pattern supports request validation and DTO records. It facilitates introducing Java DTO records and applying request validation alongside controller mappings to ensure robust RESTful endpoint processing for your Spring Boot 3 services.

Can I use this CRUD scaffolding for a new microservice managing product entities?

Yes, you can use this CRUD scaffolding for a new microservice managing products. When developing new entities, it provides patterns to scaffold the domain model, repository, service layer, and REST controller components required for feature-focused CRUD operations.

Why organize Spring Boot services into feature packages instead of technical layers?

Organizing Spring Boot services into feature packages instead of purely technical layers ensures a clean separation of concerns by grouping domain, application, presentation, and infrastructure code together per feature. This DDD-inspired approach refines feature packages and maintains cohesive boundaries.