This covers the bread and butter patterns you'll use building Spring Boot APIs: proper controller-service-repository layering, JPA repositories with custom queries, request/response DTOs with validation, global exception handling, and caching with eviction. It includes practical async processing, structured logging with correlation IDs, and pagination patterns. The rate limiting example is thorough about the security implications of using forwarded headers behind proxies. Good for mid-level developers who know Spring basics but want to see how the pieces fit together in production code, especially around error handling and non-functional requirements like caching and monitoring.

skills.sh installs
7.7K
GitHub stars
229.1K
last updated
Jul 14, 2026

Install

$ npx -y skills add affaan-m/everything-claude-code --skill springboot-patterns --agent claude-code

Installs into .claude/skills of the current project.

Files

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
class MarketController {
  private final MarketService marketService;

  MarketController(MarketService marketService) {
    this.marketService = marketService;
  }

  @GetMapping
  ResponseEntity<Page<MarketResponse>> list(
      @RequestParam(defaultValue = "0") int page,
      @RequestParam(defaultValue = "20") int size) {
    Page<Market> markets = marketService.list(PageRequest.of(page, size));
    return ResponseEntity.ok(markets.map(MarketResponse::from));
  }

Sponsors

Details

Repository
github.com/affaan-m/everything-claude-code
Category
Java & JVM

More from affaan-m/everything-claude-code

All 256

Recommended

More Java & JVM
1affaan-m avatarjava-coding-standardsaffaan-m/everything-claude-codejava coding standards6.6Kskills.sh installs
2affaan-m avatarspringboot-securityaffaan-m/everything-claude-codespringboot security6.4Kskills.sh installs
3affaan-m avatarjpa-patternsaffaan-m/everything-claude-codejpa patterns5.8Kskills.sh installs
4affaan-m avatarspringboot-verificationaffaan-m/everything-claude-codespringboot verification5.4Kskills.sh installs
5affaan-m avatarquarkus-verificationaffaan-m/everything-claude-codequarkus verification1.6Kskills.sh installs
6mindrally avatarquarkusmindrally/skillsExpert guidance for Quarkus framework development with Jakarta EE, MicroProfile, GraalVM native builds, and reactive programming patterns1.1Kskills.sh installs