spring-boot

Solid

Use when building Spring Boot services. Covers dependency injection, transaction boundaries, JPA performance, configuration, validation, and testing slices.

Testing & QA 23 stars 2 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 84/100

Stars 20%
46
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Spring Boot ## Purpose Build Spring Boot services with correct transaction boundaries and a JPA layer that does not issue a hundred queries to render a list. Spring's defaults are safe; its abstractions hide the cost of getting them wrong. ## When to Use - Building or reviewing a Spring Boot application. - Diagnosing lazy-loading exceptions or N+1 query behavior. - Getting transaction boundaries and propagation right. - Structuring a test suite that is faster than a full context load per class. ## Capabilities - Constructor injection and bean lifecycle. - Declarative transactions: propagation, isolation, rollback rules. - JPA/Hibernate: fetch strategies, entity graphs, projections. - Configuration properties with validation and profiles. - Test slices: `@WebMvcTest`, `@DataJpaTest`, Testcontainers. ## Inputs - The service, its entities, and the slow endpoint if there is one. - Database engine and connection pool configuration. ## Outputs - Services with explicit transaction boundaries. - Repositories that fetch exactly what the caller needs. - Tests that load the narrowest context that proves the behavior. ## Workflow 1. **Use constructor injection** — Field injection with `@Autowired` hides dependencies and makes the class untestable without a container. 2. **Place `@Transactional` at the service layer** — Not on the repository (too narrow, one transaction per call) and not on the controller (too wide, the transaction spans view rendering). 3. **Fetch deliberat...

Details

Author
nimadorostkar
Repository
nimadorostkar/Claude-Skills-collection
Created
2 weeks ago
Last Updated
yesterday
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Listed

spring-skills

Spring Boot framework patterns, best practices, and implementation guides

0 Updated yesterday
murtazatouqeer
Testing & QA Listed

testing-patterns

Backend testing patterns with JUnit 6, Mockito 6, Testcontainers 2.0, Spring Boot slice tests, RestTestClient, and security testing. Use when user mentions testing, coverage, TDD, integration tests, or "write tests for".

1 Updated yesterday
IuliaIvanaPatras
API & Backend Listed

spring-boot-microservices

Design, scaffold, and review modern Java Spring Boot microservices. Use this skill for ANY Spring Boot, Spring Cloud, or Java backend work — building or reviewing REST APIs in Java, Spring Data JPA / Hibernate (including N+1 and @Transactional issues), Spring Security (OAuth2, JWT), Spring Cloud Gateway, Resilience4j circuit breakers and timeouts, Kafka consumers and the transactional outbox, Micrometer / Actuator / OpenTelemetry observability, Testcontainers tests, caching with Redis, containerizing a Java service, Kubernetes probes, or zero-downtime deploys and database migrations. Trigger it whenever the user says things like "design a service", "scaffold a Spring Boot project", "add a gateway / config server / tracing / circuit breaker", "review my Spring Boot code", "is this service production-ready", "fix this N+1 or slow endpoint", "secure this API with JWT", "split this monolith", or "upgrade Spring Boot 2 to 3" — even when they never say the word "microservice". Targets the current GA generation (Spr

0 Updated 2 days ago
gauravs19