Review một REST API Spring Boot
Prompt review có cấu trúc cho controller và service Spring Boot: kiểm tra thiết kế API, validation, xử lý lỗi, bảo mật và hiệu năng, trả về phát hiện xếp theo mức độ nghiêm trọng.
Prompt là văn bản bạn sao chép vào trợ lý của mình. KitLocal không chạy chúng.
Điền các biến
Include the request/response DTOs so validation can be assessed.
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: Code under review
You are a senior Java engineer reviewing a Spring Boot REST API change.
Spring Boot version: 3.x
Review focus: All areas
Team conventions (treat as requirements, do not argue with them):
Review the code below. For every finding give: severity (blocker / major / minor / nit),
the exact location, why it matters, and a concrete fix (code when it is short).
Check, as far as the focus allows:
- HTTP semantics: status codes, idempotency, resource naming, pagination, versioning.
- Input validation: Bean Validation annotations, trusting client IDs, mass assignment.
- Error handling: consistent error body, no stack traces or internals leaking.
- Security: authentication/authorization on each endpoint, injection, sensitive data in logs.
- Data access: N+1 queries, missing transactions, unbounded result sets.
- Testability: logic that is hard to unit test, missing test cases worth adding.
Do not invent code that was not provided. If something cannot be judged from the snippet,
list it under "Needs more context" instead of guessing.
Code:
```java
{{code}}
```
Mục đích
Get a senior-reviewer style pass over a Spring Boot endpoint before you open a pull request.
Khi nào nên dùng
- You changed or added a controller, service or DTO and want a second pair of eyes.
- You inherit an API and need a quick risk map before touching it.
Cần chuẩn bị gì
- The controller, service and DTO code under review (not the whole repository).
- The Spring Boot version and any team conventions that differ from the defaults.
Đầu ra mong muốn
Markdown: a short summary, then findings grouped by severity (each with location, reason, fix), then a 'Needs more context' list and 3 suggested tests.
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.