Run mvn spring-boot:run
the command to start the Spring Boot project. This command invokes the Maven plugin to compile and run the application. Before running this command, make sure you have a terminal open in the project root directory and that Maven is installed.
Here are the steps to run this command:
- Navigate to the project root directory in a terminal.
- Run the command
mvn spring-boot:run
. - Maven will compile and build the project, then run the application.
- In the console, you will see logs output by the application.
- The application will start on the default port (usually 8080).
If you want to change the port number of your application, you can application.properties
add the following to the file:
server.port=your_port_number
Replace your_port_number
with the port number you want to use.