Review a Spring Boot REST API
A structured review prompt for Spring Boot controllers and services that checks API design, validation, error handling, security and performance, and returns findings ranked by severity.
このリソースは英語のみで提供されています。
プロンプトは、ご自身のアシスタントにコピーして使うテキストです。KitLocal はプロンプトを実行しません。
変数を入力
Include the request/response DTOs so validation can be assessed.
入力した内容はこのブラウザ内にのみ残り、URL への追加、保存、外部への送信は行われません。
プレビュー
未入力: 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}}
```
目的
Get a senior-reviewer style pass over a Spring Boot endpoint before you open a pull request.
使う場面
- 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.
準備するもの
- 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.
期待される出力
Markdown: a short summary, then findings grouped by severity (each with location, reason, fix), then a 'Needs more context' list and 3 suggested tests.
このカタログについて
同梱スナップショット · 2026/11/15 6:05 に公開 · カタログのリビジョン 5bc079fe355af2214bc0
アプリに同梱されたスナップショットを表示しています(コンテンツソースが設定されていません)。ソース側にはより新しいコンテンツがある可能性があります。