Skip to content

Tirth-22/springboot-store-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Spring Boot Crash Course Project


Contents

1. Introduction

  • Overview of Spring Boot and its advantages.
  • Auto-configuration and embedded Tomcat server.

2. Project Setup

  • Creating a Spring Boot project with Spring Initializr.
  • Understanding project structure (pom.xml, source folders, resources).

3. REST API Development

  • Building controllers with @RestController.
  • Defining endpoints using @GetMapping, @PostMapping, etc.
  • Returning JSON responses.

4. Dependency Injection

  • Managing beans with Spring’s IoC container.
  • Using @Component, @Service, and @Autowired.
  • Constructor-based injection.

5. Configuration Management

  • External configuration with application.properties and YAML.
  • Profiles for different environments.

6. Validation & Error Handling

  • Adding validation with @Valid and annotations like @NotNull and @Size.
  • Handling exceptions with @ExceptionHandler.

7. Lombok

  • Using Lombok annotations (@Getter, @Setter, @NoArgsConstructor, @AllArgsConstructor) to reduce boilerplate code.

8. Running the Application

  • Running with Maven and embedded Tomcat.
  • Testing endpoints via browser or Postman.

This project is meant for:

  • Practicing core Spring Boot concepts.
  • Having a quick-start reference for REST API development.
  • Serving as a foundation for more advanced Spring projects.

About

Spring Boot project for a simple Store API with basic CRUD operations.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published