Skip to content

shounoop/spring-boot-3-codebase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Boot 3 Codebase

This repository contains a Spring Boot 3 codebase currently in development.

Running the Application

1. Using Maven

To run the application with Maven, execute the following command:

mvn spring-boot:run

2. Using Java

To run the application using Java, first package the application with Maven and then run the generated JAR file:

mvn clean package
java -jar target/spring-boot-3-0.0.1-SNAPSHOT.jar

3. Using Docker Compose

To run the application using Docker Compose, use the following command:

docker-compose up -d

Project Setup

Prerequisites

  • Java 17 or higher
  • Maven 3.8 or higher
  • Docker (for Docker Compose setup)

Dependencies

  • Spring Boot 3 (Parent Dependency)
  • Spring Boot Starter Data JPA (for data access)
  • Spring Boot Starter Web (for building web applications)
  • Spring Boot Starter Test (for testing)
  • MySQL Connector (for connecting to MySQL database)
  • MapStruct (for mapping between DTOs and entities)
  • Lombok (for reducing boilerplate code)
  • Lombok MapStruct Binding (for Lombok and MapStruct integration)
  • Jakarta Validation API (for bean validation)
  • Hibernate Validator (for validation implementation)
  • SpringDoc OpenAPI Starter WebMVC UI (for Swagger API documentation)
  • SonarQube Maven Plugin (for code quality analysis)
  • Spring Security (for authentication and authorization)
  • Spring Web (for building RESTful web services)
  • Spring Boot DevTools (for enhanced development experience)
  • Spring Boot Actuator (for monitoring and management)

References