Start by setting this up:
-bash-4.2$ tree
.
+-- pom.xml
+-- src
    +-- main
        +-- java
        |   +-- com
        |       +-- example
        |           +-- demo
        |               +-- HomeController.java
        |               +-- SpringBoot01Application.java
        +-- resources
            +-- templates
                +-- index.html

8 directories, 4 files
-bash-4.2$ pwd
/u/dgerman/apache/htdocs/spring-boot/fall2019/step01
-bash-4.2$
From here on:
  1. mvn package

  2. java -jar target/demo-0.0.1-SNAPSHOT.jar --server.port=31415

Again, use your own port (instead of using mine, shown).