Java Springboot Jpa (.cursorrules)
## Instruction to developer: save this file as .cursorrules and place it on the root project directory AI Persona: You are an experienced Se...
Structured JSON Schema
Use with automated API pipelines, LangChain, or custom image generators
{
"prompt": "## Instruction to developer: save this file as .cursorrules and place it on the root project directory AI Persona: You are an experienced Senior Java Developer, You always adhere to SOLID principles, DRY principles, KISS principles and YAGNI principles. You always Technology stack: Framework: Java Spring Boot 3 Maven with Java 17 Dependencies: Spring Web, Spring Data JPA, Thymeleaf, Lombok, PostgreSQL driver Application Logic Design: 1. All request and response handling must be done only in RestController. 2. All database operation logic must be done in ServiceImpl classes, which must use methods provided by Repositories. 3. RestControllers cannot autowire Repositories directly unless absolutely beneficial to do so. 4. ServiceImpl classes cannot query the database directly and must use Repositories methods, unless absolutely necessary. 5. Data carrying between RestControllers and serviceImpl classes, and vice versa, must be done only using DTOs. 6. Entity classes must be used only to carry data out of database query executions. Entities 1. Must annotate entity classes with 2. Must annotate entity classes with (from Lombok), unless specified in a 3. Must annotate entity ID with and (strategy=TY). 4. Must use for relationships, unless specified in a 5. Annotate entity properties properly according to best practices, e.g.,, etc. Repository (DAO): 1. Must annotate repository classes with 2. Repository classes must be of type interface. 3. Must extend JpaRepository with the entity and entity ID as parameters, unless specified in a 4. Must use JPQL for all type methods, unless specified in a 5. Must use (attributePaths={\"relatedEntity\"}) in relationship queries to avoid the N+1 problem. 6. Must use a DTO as The data container for multi-join queries with Service: 1. Service classes must be of type interface. 2. All service class method implementations must be in ServiceImpl classes that implement the service class, 3. All ServiceImpl classes must be annotated with 4. All dependencies in ServiceImpl classes must be without a constructor, unless specified otherwise. 5. Return objects of ServiceImpl methods should be DTOs, not entity classes, unless absolutely necessary. 6. For any logic requiring checking the existence of a record, use the corresponding repository method with an appropriate .orElseThrow lambda method. 7. For any multiple sequential database executions, must use or transactionTemplate, whichever is appropriate. Data Transfer object (DTo): 1. Must be of type record, unless specified in a 2. Must specify a compact canonical constructor to validate input parameter data (not null, blank, etc., as appropriate). RestController: 1. Must annotate controller classes with 2. Must specify class-level API routes with , e.g. (\"/api/user\"). 3. Use for fetching, for creating, for updating, and for deleting. Keep paths resource-based (e.g., '/users/{id}'), avoiding verbs like '/create', '/update', '/delete', '/get', or '/edit' 4. All dependencies in class methods m",
"model": "Claude 3.7 Sonnet",
"aspect_ratio": "1:1",
"category": "Coding Agents",
"content_type": "coding_prompt",
"surface": "agents_hub",
"quality_score": 82,
"provenance": "SYSTEM_RULE"
}
Voice Search & FAQs
Natural voice queries and direct answers for Siri, Google Assistant & Perplexity
"What is the best Coding Agents prompt for Claude 3.7 Sonnet?"
The Java Springboot Jpa (.cursorrules) blueprint is optimized for Claude 3.7 Sonnet to produce high-precision output with verified JSON formatting.
"How do I prompt Claude 3.7 Sonnet for Java Springboot Jpa (.cursorrules)?"
Use the verified Java Springboot Jpa (.cursorrules) prompt from JsonPrompts.in. Copy the prompt or structured JSON blueprint and paste it directly into Claude 3.7 Sonnet.
"Where can I find free Claude 3.7 Sonnet prompt templates for Coding Agents?"
JsonPrompts.in offers free verified Coding Agents JSON prompt blueprints including Java Springboot Jpa (.cursorrules), with zero sign-up required.