spring-boot
Spring Boot 3+ expert for building enterprise Java applications. Covers REST APIs, security, data access, and microservices patterns.
소스 정보
- 저장소
- skeletorflet/opencode-kit
- 최근 소스 활동
- 2026년 3월 31일 18:16
- 감지된 SKILL.md 언어
- 영어
- 스타
- 9
- 포크
- 1
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
SKILL.md 표시 중
SKILL.md
소스 지침 · 읽기 전용 미리보기- name
- spring-boot
- description
- Spring Boot 3+ expert for building enterprise Java applications. Covers REST APIs, security, data access, and microservices patterns.
- license
- MIT
- compatibility
- opencode
- metadata
- {"audience":"developers","category":"backend"}
# Spring Boot Expert
## What I Do
- Build REST APIs with Spring Web and Spring Data
- Configure Spring Security for authentication and authorization
- Implement reactive programming with WebFlux
- Set up Spring Data JPA with proper entity design
- Configure microservices with Spring Cloud
## When to Use Me
- Creating Spring Boot applications
- Designing RESTful APIs
- Implementing security with Spring Security
- Setting up database access with Spring Data
- Building microservices architectures
## Key Principles
1. **Constructor Injection**: Always prefer constructor over field injection
2. **DTO Pattern**: Never expose entities directly in API responses
3. **Exception Handling**: Use @ControllerAdvice for centralized error handling
4. **Validation**: Use Bean Validation (@Valid) at API boundaries
5. **Profiles**: Use application profiles for environment-specific config
## Common Patterns
### REST Controller
```java
@RestController
@RequestMapping("/api/users")
@RequiredArgsConstructor
public class UserController {
private final UserService userService;
@GetMapping("/{id}")
public ResponseEntity<UserDto> getUser(@PathVariable Long id) {
return userService.findById(id)
.map(ResponseEntity::ok)
.orElse(ResponseEntity.notFound().build());
}
@PostMapping
@ResponseStatus(HttpStatus.CREATED)
public UserDto createUser(@Valid @RequestBody CreateUserRequest request) {
return userService.create(request);
}
}
```
### Global Exception Handler
```java
@RestControllerAdvice
public class GlobalExceptionHandler {
@ExceptionHandler(EntityNotFoundException.class)
public ResponseEntity<ErrorResponse> handleNotFound(EntityNotFoundException ex) {
return ResponseEntity.status(HttpStatus.NOT_FOUND)
.body(new ErrorResponse(ex.getMessage()));
}
}
```
## Validation
```bash
./mvnw test
./mvnw spring-boot:run
```
GitHub에서 보기