Spring boot application

From aj-geddes/useful-ai-prompts · View interactive version

Spring boot application is an AI agent skill from the GitHub repository aj-geddes/useful-ai-prompts. Build enterprise Spring Boot applications with annotations, dependency injection, data persistence, REST controllers, and security. Use when developing Spring applications, managing beans, implementing services, and configuring Spring Boot projects.

How to use this skill

Skill file

Spring Boot Application

Table of Contents

Overview

Develop production-ready Spring Boot applications with proper annotation-based configuration, dependency injection, REST controllers, JPA data persistence, service layers, and security implementation following Spring conventions.

When to Use

Quick Start

Minimal working example:

<!-- pom.xml -->
<project>
    <modelVersion>4.0.0</modelVersion>
    <groupId>com.example</groupId>
    <artifactId>api-service</artifactId>
    <version>1.0.0</version>

    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>3.1.0</version>
    </parent>

    <dependencies>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-data-jpa</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-security</artifactId>
// ... (see reference guides for full implementation)

Reference Guides

Detailed implementations in the references/ directory:

| Guide | Contents |

|---|---|

| Spring Boot Project Setup | Spring Boot Project Setup |

| Entity Models with JPA Annotations | Entity Models with JPA Annotations |

| Repository Layer with Spring Data JPA | Repository Layer with Spring Data JPA |

| Service Layer with Business Logic | Service Layer with Business Logic |

| REST Controllers with Request/Response Handling | REST Controllers with Request/Response Handling |

| Spring Security Configuration | Spring Security Configuration |

| Application Configuration | Application Configuration |

Best Practices

✅ DO

❌ DON'T

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.