.skills.mdc 784 Bytes
---
description: Implementing Spring Boot controllers, services, gRPC clients, business logic, and backend APIs
alwaysApply: false
---
# Backend Implementation Skill (Spring Boot + gRPC)

## When writing backend code
- Use Spring Boot 2.5.12 conventions
- Write Java 17 compatible code
- Follow layered architecture

## Service Implementation
- Service interfaces in service/
- Implementations in service/impl/, named XxxServiceImpl
- Use constructor injection
- Use @Transactional for write operations
- Log key business steps with @Slf4j

## gRPC Integration
- Use XxxServiceRpcClient to wrap gRPC calls
- Prefer batch RPC methods
- Validate empty collections before calling RPC

## Common Libraries
- Lombok for boilerplate reduction
- Hutool for date, collection, string utilities