Start by setting this up:
From here on:-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$
mvn package
java -jar target/demo-0.0.1-SNAPSHOT.jar --server.port=31415
Again, use your own port (instead of using mine, shown).