Паттерны разработки REST API на Spring Boot
engineering
spring-boot-patterns is a Claude Code skill that provides best practices and patterns for building Spring Boot applications, covering REST API design, service layer architecture, JPA repositories, and exception handling. The skill defines a reference project structure with dedicated layers — controller, service, repository, model, dto, and exception — and includes a full REST controller template with versioned endpoints, correct HTTP status codes, and @Valid request body validation. Service patterns follow the Interface + Implementation approach with class-level @Transactional(readOnly = true) and write-specific @Transactional overrides, while repository examples cover derived queries, @Query annotations, and native queries. Anti-patterns such as embedding business logic in controllers or returning JPA entities directly are explicitly called out. Ideal for Java developers building new Spring Boot projects, reviewing existing code, or designing a clean layered backend architecture.
- #java
- #spring-boot
- #rest-api
- #jpa
- #design-patterns