Use the following commands to build run the application:
$ mvn clean package
$ java -jar target/livelessons-web-resources-1.0.0-SNAPSHOT.jar
The src/main/resources
folder includes public
, resources
and static
subfolders
which can all be used to serve content.
This example also shows how it is possible to serve JavaScript and CSS resources from
webjars. This is automatically configured by Spring Boot so all
you need to do is declare WebJar dependencies in your pom.xml