Before you start, ensure you have met the following requirements:
- Java: JDK 17 or higher
To start the application, follow these steps:
- Open your terminal.
- Navigate to the project directory.
- Run the application using Maven:
mvn spring-boot:run
This command will start the Spring Boot application on the configured port.
To package your Spring Boot application into a JAR file, follow these instructions:
- Open your terminal.
- Navigate to the project directory where your
pom.xml
is located. - Run the following Maven command:
mvn clean package
This command will clean the target directory, compile your code, and package it into a JAR file.
After successful packaging, you'll find the JAR file in the target
directory of your project.