springboot-patterns

Installation
Summary

Spring Boot patterns for REST APIs, layered services, data access, caching, and async processing.

  • Covers controller, service, and repository layers with Spring MVC/WebFlux, Spring Data JPA queries, and transactional boundaries
  • Includes DTOs with validation, centralized exception handling via @ControllerAdvice, and RFC 7807 error responses
  • Provides caching strategies with @Cacheable and @CacheEvict, async processing with @Async, and structured logging via SLF4J
  • Demonstrates request filtering, pagination, sorting, retry logic, and rate limiting with security considerations for forwarded headers
  • Covers background jobs, observability (Micrometer, OpenTelemetry), and production defaults like constructor injection and connection pooling
SKILL.md

Spring Boot Development Patterns

Spring Boot architecture and API patterns for scalable, production-grade services.

When to Activate

  • Building REST APIs with Spring MVC or WebFlux
  • Structuring controller → service → repository layers
  • Configuring Spring Data JPA, caching, or async processing
  • Adding validation, exception handling, or pagination
  • Setting up profiles for dev/staging/production environments
  • Implementing event-driven patterns with Spring Events or Kafka

REST API Structure

@RestController
@RequestMapping("/api/markets")
@Validated
Related skills
Installs
5.6K
GitHub Stars
179.7K
First Seen
Jan 30, 2026