Chuyển tới nội dung chính
kitlocal.dev

AGENTS.md cho dịch vụ Spring Boot

AGENTS.md khởi đầu cho dịch vụ Spring Boot: lệnh build/test, quy tắc phân tầng và transaction, cùng các quy tắc an toàn cho agent.

Loại: AGENTS.md

KitLocal không bao giờ ghi tệp vào máy của bạn. Hãy sao chép kết quả hoặc tự tải về.

Điền các biến

Những gì bạn gõ chỉ ở trong trình duyệt này. Không được thêm vào URL, không lưu và không gửi đi đâu.

Xem trước

Còn thiếu: Service name, Base package

# {{serviceName}}: agent guide

Spring Boot service on Java 21, built with Maven. Base package: `{{basePackage}}`.

## Commands
- Build and verify: `./mvnw -q verify`
- Tests: `./mvnw -q test`
Run the tests for the code you changed before declaring a task complete.

## Layering
- Controllers handle HTTP only: validate input (Bean Validation), call a service, map to a DTO.
- Business logic lives in services; transactions are declared on service methods, not controllers.
- Never return JPA entities from controllers; use DTOs.
- Repositories contain queries only. Watch for N+1 queries and unbounded result sets.

## Safety
- Do not log secrets, tokens or personal data.
- Schema changes go through migrations; never edit applied migrations.
- Do not add dependencies, change the Java version or alter security configuration without asking.
- Do not commit, push or deploy.

## Project-specific rules

Về danh mục này

Bản chụp đi kèm ứng dụng · xuất bản lúc 06:05 15 thg 11, 2026 · Phiên bản danh mục 5bc079fe355af2214bc0

Đang hiển thị bản chụp đi kèm ứng dụng (chưa cấu hình nguồn nội dung). Nguồn có thể đã có nội dung mới hơn.