← ClaudeAtlas

spring-boot-patternslisted

Spring Boot best practices and patterns. Use when creating controllers, services, repositories, or when user asks about Spring Boot architecture, REST APIs, exception handling, or JPA patterns.
decebals/claude-code-java · ★ 599 · API & Backend · score 82
Install: claude install-skill decebals/claude-code-java
# Spring Boot Patterns Skill Best practices and patterns for Spring Boot applications. ## When to Use - User says "create controller" / "add service" / "Spring Boot help" - Reviewing Spring Boot code - Setting up new Spring Boot project structure ## Project Structure ``` src/main/java/com/example/myapp/ ├── MyAppApplication.java # @SpringBootApplication ├── config/ # Configuration classes │ ├── SecurityConfig.java │ └── WebConfig.java ├── controller/ # REST controllers │ └── UserController.java ├── service/ # Business logic │ ├── UserService.java │ └── impl/ │ └── UserServiceImpl.java ├── repository/ # Data access │ └── UserRepository.java ├── model/ # Entities │ └── User.java ├── dto/ # Data transfer objects │ ├── request/ │ │ └── CreateUserRequest.java │ └── response/ │ └── UserResponse.java ├── exception/ # Custom exceptions │ ├── ResourceNotFoundException.java │ └── GlobalExceptionHandler.java └── util/ # Utilities └── DateUtils.java ``` --- ## Controller Patterns ### REST Controller Template ```java @RestController @RequestMapping("/api/v1/users") @RequiredArgsConstructor // Lombok for constructor injection public class UserController { private final UserService userService; @GetMapping public ResponseEntity<List<UserRespons