मुख्य सामग्री पर जाएँ
kitlocal.dev

AGENTS.md for a Spring Boot service

A starting AGENTS.md for a Spring Boot service: build and test commands, layering and transaction rules, and the safety rules agents should follow.

यह संसाधन केवल अंग्रेज़ी में उपलब्ध है।

प्रकार: AGENTS.md

KitLocal आपके कंप्यूटर पर कभी फ़ाइलें नहीं लिखता। नतीजा कॉपी करें या खुद डाउनलोड करें।

वेरिएबल भरें

आप जो लिखते हैं वह इसी ब्राउज़र में रहता है। इसे URL में नहीं जोड़ा जाता, सहेजा नहीं जाता और कहीं भेजा नहीं जाता।

पूर्वावलोकन

अभी भी चाहिए: 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

इस कैटलॉग के बारे में

साथ में शामिल स्नैपशॉट · 15 नव॰ 2026, 6:05 am पर प्रकाशित · कैटलॉग रिविज़न 5bc079fe355af2214bc0

ऐप के साथ आया स्नैपशॉट दिखाया जा रहा है (कोई कंटेंट स्रोत कॉन्फ़िगर नहीं है)। स्रोत पर नया कंटेंट हो सकता है।