Guides adding retries, backoff, and concurrency protection to Spring Boot 3 / Spring Framework 6 services. Covers Spring Retry vs Resilience4j selection, proxy behavior, transaction limits, and failure/deadline policies.
Ships in spring-boot-3-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Boot 3 does not have Spring Framework 7 core resilience annotations. Preserve an existing Spring Retry or Resilience4j integration when fixing behavior; do not silently replace it. Spring Retry is archived, so the example below is for compatibility with existing Boot 3 applications, not a new-project default. For new retry infrastructure, evaluate a maintained Boot-3-compatible library such as Resilience4j and its exact Java/framework requirements. Keep dependencies explicit.
@Configuration
@EnableRetry
class RetryConfig { }
@Service
class CatalogClient {
@Retryable(
retryFor = ConnectException.class,
maxAttempts = 4,
backoff = @Backoff(delay = 200, multiplier = 2.0, maxDelay = 2000))
CatalogItem find(UUID id) { ... } // idempotent read
@Recover
CatalogItem recover(ConnectException error, UUID id) { throw new CatalogUnavailableException(error); }
}
Spring Retry's maxAttempts includes the initial call. Resilience4j is preferable when retry
must be composed with a circuit breaker or bulkhead. Both approaches are proxy-based: self
invocation bypasses advice, and retrying a method inside a rollback-only transaction does not
create a fresh transaction for each attempt.
Exception.Retry-After for 429/503 only when policy permits;
do not keep a request thread asleep beyond the caller's deadline.The CatalogRetryService preserves Spring Retry for an
existing application and requires spring-retry plus Spring AOP/AspectJ support.
It is an executable, three-attempt
read example, used with the companion HTTP-client adapter. It deliberately does not implement
429 scheduling or a total deadline. Tests cover transient recovery, exhaustion, permanent
errors and interruption through the actual Spring proxy. Its delays are illustrative; choose
production values from the downstream latency budget.
The repository fixture targets Boot 3.5.16 with Java 17/21 and checks bounded attempts through real Spring proxies; not a complete deadline-aware payment workflow. Check the coverage matrix before treating another minor version or an illustrative snippet as verified.
@EnableResilientMethods - Boot 3 needs Spring Retry or Resilience4j.maxAttempts with retry count - Spring Retry includes the initial call.@Recover to Resilience4j - recovery must be modeled with a fallback or caller handling.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/spring-boot-3-skills:resilience-retryfrom spring-boot-3-skills
npx claudepluginhub rrezartprebreza/spring-boot-skills --plugin spring-boot-3-skills44 skills in this plugin
/agent-qa-browser-regressionUse when verifying an existing browser journey with agent-qa against a running Spring Boot application. Covers target selection, scoped execution, run evidence, and memidex provenance while preserving backend tests and security contracts.
/ai-observabilityUse when adding Spring AI-specific model observations, token usage, latency, externally configured cost attribution, advisor telemetry, or protected prompt and completion logging. Use production-observability for general service metrics, health, logs, and OTLP setup.
/api-versioningUse when versioning Spring MVC or WebFlux APIs in Spring Boot 3 / Spring Framework 6. Covers explicit URL, header, and media-type strategies, compatibility rules, and deprecation handling.
/async-executionUse when adding or debugging Spring @Async work, executor saturation, asynchronous failures or lost thread context. Not a substitute for durable jobs or reactive pipelines.
/configuration-propertiesUse when introducing or correcting grouped Spring Boot configuration, typed property binding, validation, profiles or secret injection. Do not rewrite unrelated single-value configuration.
/container-native-deploymentUse when packaging a Spring Boot 3 application as an OCI image or GraalVM native executable. Covers buildpacks, layered images, JVM containers, AOT hints, probes, security, and verification.
Other plugins' skills for the same job