Spring Boot

01 | Setup Maven

$brew install maven

Check installed version
$mvn -version

02 | Head to https://start.spring.io/ & select full view.

Select the Correct JDK and SpringBoot version. Tick the following dependencies:
1. Web
2. Actuator

03 | Extract the zip and run the following form the extracted folder

$mvn clean package

04 | run it from terminal (after the dependencies get dowloaded)

java -jar target/SpringBoot-0.0.1-SNAPSHOT.jar

04 | Navigate to http://localhost:8080

you should see the following error page. the one which you get for undefined routes. “Whitelabel Error Page This application has no explicit mapping for /error,

05 | Create your first page

create folder named webapp (src/main/webapp) and place an html file to test it. example: hello.html Now navigate to http://localhost:8080/hello.html

You are done here!