This guide walks you through cloning the repository, building the project with Maven, starting the application, and making your first real HTTP request to create a product. By the end you will have a running API on port 8080 and an understanding of theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/ricpalomino/spring-boot/llms.txt
Use this file to discover all available pages before exploring further.
ApiResponse<T> envelope every endpoint returns.
Check prerequisites
You need the following tools installed before you begin:
- Java 17 or later — confirm with
java -version - Maven — the repository includes the Maven Wrapper (
mvnw), so a system-wide Maven installation is optional
Build the project
Run the Maven Wrapper to compile source code, run tests, and install the artifact to your local Maven repository:A
BUILD SUCCESS message confirms the project compiled and all tests passed.Start the application
Spring Boot DevTools is included as a runtime dependency. While running with
spring-boot:run, the server automatically restarts whenever you save a .java file — no manual restart required during development.Verify the API is running
In a separate terminal, send a Because the in-memory store starts empty, the response is:
GET request to list all products:Create your first product
Send a The server responds with The
POST request with a JSON body containing a name (3–100 characters) and a price (minimum 1):HTTP 201 Created and the saved product wrapped in the ApiResponse envelope:id field is assigned automatically by the in-memory repository, starting at 1 and incrementing with each new product.