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:runThis 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.xmlis located. - Run the following Maven command:
mvn clean packageThis 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.