java-spring-patterns
CommunityProduction-ready Spring Boot patterns
Authorwesleyosantos91
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill helps engineers implement Spring Boot features in production by standardizing reusable patterns for configuration, resilience, security, messaging, caching, scheduling, observability, and querying.
Core Features & Use Cases
- Type-safe configuration & wiring: Use
@ConfigurationProperties,@EnableConfigurationProperties,@ConditionalOnProperty, and@Profileto build predictable bean graphs. - Resilience and failure handling: Apply Resilience4j circuit breaker, retry, and rate limiter with fallbacks for graceful degradation.
- Production service foundations: Secure endpoints with Spring Security (JWT, stateless sessions), integrate messaging via Kafka/SQS listeners, cache hot paths, schedule recurring jobs with distributed locks, and add metrics/timers with Micrometer/OpenTelemetry.
- Efficient endpoints: Implement pagination, filtering, and sorting using
PageRequestplus specification-style query composition. - Anti-pattern guidance: Avoid common Spring pitfalls like field
@Autowired, overly broad@Transactional, controller-to-service calls, silentopen-in-view, generic catch blocks in services, and@Asyncwithout a configured executor.
Quick Start
Ask the Skill to propose a Spring Boot implementation approach for a new payment API endpoint that is secured with JWT, processes events from Kafka, uses circuit breaker + retry, caches product lookups, and exposes Micrometer metrics.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: java-spring-patterns Download link: https://github.com/wesleyosantos91/multi-agents/archive/main.zip#java-spring-patterns Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.