In this section, you will learn about three different techniques using to run the Spring Boot app.
- Using Eclipse IDE: This is pretty straightforward. One can run from within the Eclipse IDE using the following two different methods:
- Right-click on the project and click on Run as > Spring Boot App. This will run the Spring Boot app.
- Click on the green-color button in the toolbar. This will open a a few options. Click on Run as > Spring Boot App to run the app.
- Using Command Prompt: One could do the following to run the Spring Boot app from Command Prompt:
- Build the app using the following command. This will create a jar or war file within the target directory:
mvn clean package
-
- Execute the following command to run the app assuming that the jar file is created within the target directory. Note...