To package the service, run mvn clean package
to create an executable jar file.
To launch the service locally, run java -jar target/<name-of-jar>.jar
.
For more details, please read Building a RESTful Web Service.
Spring Actuator adds additional production-grade features such as determining if the service is up
and switching ports via application.properties
.
Navigate to /actuator/health
to run the health check.