This is a bare-bones scaffold with the single purpose of serving static content using a Spring Boot application with an embedded Tomcat inside.
It produces a single fat executable jar, with all dependencies and the content in it.
Just drop your site content in the webroot, build the jar and then run it!
$ ./buildAndRun.sh
The server listens on localhost:8080.
Yes, you need
src/main/resouces/public
This is called "externalized configuration" in Spring Boot, basically
add an application.properties
file, set environment variables,
or use a combination of both.
To change port number, add a file src/main/resources/application.properties
and put server.port=8090
in it for example.
69.1 Externalize the configuration of SpringApplication
See 70. Embedded servlet containers