मुख्य सामग्री पर जाएँ
Skillpedia
API और सर्वर (backend)12k · #11459

spring-boot-engineer

यह क्या करती है

यह AI को REST endpoints से लेकर सुरक्षा और डेटाबेस कोड तक Java Spring Boot सेवाएँ बनाने का मार्गदर्शन देती है। यह Java डेवलपर्स के लिए है।

कब इस्तेमाल करें

  • ✓जब आप नया Spring Boot 3 बैकएंड या माइक्रोसर्विस शुरू करते हैं।
  • ✓जब आपको Java ऐप में Spring Security लॉगिन या OAuth2 जोड़ना हो।
  • ✓जब आप Spring Data JPA repositories या reactive WebFlux endpoints सेट करवाना चाहते हैं।

Skill का लिंक

https://github.com/Jeffallan/claude-skills/blob/main/skills/spring-boot-engineer/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/Jeffallan/claude-skills/blob/main/skills/spring-boot-engineer/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“क्या आप Spring Boot 3 से REST API बनाने में मदद कर सकते हैं, जिसे लॉगिन से सुरक्षित किया गया हो?”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

AI सेवाओं की योजना बनाता है, मानक Spring पैटर्न से कोड लिखता है, टेस्ट चलाता है, और जाँचता है कि health endpoint ऐप को चालू बताता है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

Spring Boot Engineer

Core Workflow

  1. Analyze requirements — Identify service boundaries, APIs, data models, security needs
  2. Design architecture — Plan microservices, data access, cloud integration, security; confirm design before coding
  3. Implement — Create services with constructor injection and layered architecture (see Quick Start below)
  4. Secure — Add Spring Security, OAuth2, method security, CORS configuration; verify security rules compile and pass tests. If compilation or tests fail: review error output, fix the failing rule or configuration, and re-run before proceeding
  5. Test — Write unit, integration, and slice tests; run ./mvnw test (or ./gradlew test) and confirm all pass before proceeding. If tests fail: review the stack trace, isolate the failing assertion or component, fix the issue, and re-run the full suite
  6. Deploy — Configure health checks and observability via Actuator; validate /actuator/health returns UP. If health is DOWN: check the components detail in the response, resolve the failing component (e.g., datasource, broker), and re-validate

Reference Guide

Load detailed guidance based on context:

Topic Reference Load When
Web Layer references/web.md Controllers, REST APIs, validation, exception handling
Data Access references/data.md Spring Data JPA, repositories, transactions, projections
Security references/security.md Spring Security 6, OAuth2, JWT, method security
Cloud Native references/cloud.md Spring Cloud, Config, Discovery, Gateway, resilience
Testing references/testing.md @SpringBootTest, MockMvc, Testcontainers, test slices

Quick Start — Minimal Working Structure

A standard Spring Boot feature consists of these layers. Use these as copy-paste starting points.

Entity

@Entity
@Table(name = "products")
public class Product {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    @NotBlank
    private String name;

    @DecimalMin("0.0")
    private BigDecimal price;

    // getters / setters or use @Data (Lombok)
}

Repository

public interface ProductRepository extends JpaRepository<Product, Long> {
    List<Product> findByNameContainingIgnoreCase(String name);
}

Service (constructor injection)

@Service
public class ProductService {
    private final ProductRepository repo;

    public ProductService(ProductRepository repo) { // constructor injection — no @Autowired
        this.repo = repo;
    }

    @Transactional(readOnly = true)
    public List<Product> search(String name) {
        return repo.findByNameContainingIgnoreCase(name);
    }

    @Transactional
    public Product create(ProductRequest request) {
        var product = new Product();
        product.setName(request.name());
        product.setPrice(request.price());
        return repo.save(product);
    }
}

REST Controller

@RestController
@RequestMapping("/api/v1/products")
@Validated
public class ProductController {
    private final ProductService service;

    public ProductController(ProductService service) {
        this.service = service;
    }

    @GetMapping
    public List<Product> search(@RequestParam(defaultValue = "") String name) {
        return service.search(name);
    }

    @PostMapping
    @ResponseStatus(HttpStatus.CREATED)
    public Product create(@Valid @RequestBody ProductRequest request) {
        return service.create(request);
    }
}

DTO (record)

public record ProductRequest(
    @NotBlank String name,
    @DecimalMin("0.0") BigDecimal price
) {}

Global Exception Handler

@RestControllerAdvice
public class GlobalExceptionHandler {
    @ExceptionHandler(MethodArgumentNotValidException.class)
    @ResponseStatus(HttpStatus.BAD_REQUEST)
    public Map<String, String> handleValidation(MethodArgumentNotValidException ex) {
        return ex.getBindingResult().getFieldErrors().stream()
            .collect(Collectors.toMap(FieldError::getField, FieldError::getDefaultMessage));
    }

    @ExceptionHandler(EntityNotFoundException.class)
    @ResponseStatus(HttpStatus.NOT_FOUND)
    public Map<String, String> handleNotFound(EntityNotFoundException ex) {
        return Map.of("error", ex.getMessage());
    }
}

Test Slice

@WebMvcTest(ProductController.class)
class ProductControllerTest {
    @Autowir
अक्सर पूछे जाने वाले सवाल

क्या यह केवल Spring Boot 3 के लिए है?

स्किल Spring Boot 3.x के लिए लिखी गई है, इसलिए उसका मार्गदर्शन उसी संस्करण पर केंद्रित है।

क्या यह टेस्ट भी लिखती है?

हाँ। यह यूनिट, इंटीग्रेशन और slice टेस्ट कवर करती है और AI से उन्हें चलवाती है।

health check किसलिए है?

यह Spring Boot Actuator से बताता है कि ऐप स्वस्थ है या नहीं, जो मॉनिटरिंग में मदद करता है।

जानकारी

लेखक का मूल विवरण

Generates Spring Boot 3.x configurations, creates REST controllers, implements Spring Security 6 authentication flows, sets up Spring Data JPA repositories, and configures reactive WebFlux endpoints. Use when building Spring Boot 3.x applications, microservices, or reactive Java applications; invoke for Spring Data JPA, Spring Security 6, WebFlux, Spring Cloud integration, Java REST API design, or Microservices Java architecture.

repo: Jeffallan/claude-skills

लोकप्रियता

GitHub स्टार
12k
रैंकिंग में स्थान
#11459
लाइसेंस
MIT
अपडेट की गई
30/10/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

angular-architect

12k

आपके एजेंट को standalone कॉम्पोनेंट, lazy-loaded रूटिंग, NgRx स्टेट, RxJS पैटर्न और परफ़ॉर्मेंस सुधार के साथ Angular 17 और नए ऐप बनाने में मदद करती है।

कोडिंगवेबसाइट और UI (frontend)

api-designer

12k

आपके एजेंट को REST या GraphQL API डिज़ाइन करने और OpenAPI 3.1 स्पेक लिखने में मदद करती है, जिसमें संसाधन, पेजिनेशन, एरर फ़ॉर्मेट और वर्ज़निंग के नियम हों।

कोडिंगAPI और सर्वर (backend)

architecture-designer

12k

आपके एजेंट को सिस्टम आर्किटेक्चर डिज़ाइन करने, पैटर्न और तकनीकों की तुलना करने, और हर चुनाव समझाने वाले Architecture Decision Records लिखने में मदद करती है।

कोडिंगसामान्य कोडिंग

atlassian-mcp

12k

MCP के ज़रिए Jira इश्यू खोजने और अपडेट करने, और Confluence पेज संभालने में मदद करती है, JQL और CQL क्वेरी, स्प्रिंट और दस्तावेज़ सिंक के साथ।

प्रोडक्टिविटीटास्क और प्रोजेक्ट

मिलती-जुलती skills