Learning objectives:
th:object attribute
th:field attribute
Here's the setup:
-bash-4.2$ pwd
/u/dgerman/apache/htdocs/spring-boot/fall2019/step06
-bash-4.2$ tree
.
+-- pom.xml
+-- src
+-- main
+-- java
| +-- com
| +-- example
| +-- demo
| +-- HomeController.java
| +-- Song.java
| +-- SpringBoot06Application.java
+-- resources
+-- templates
+-- confirmsong.html
+-- songform.html
8 directories, 6 files
-bash-4.2$
Build and run like before:
Then when you go online how will you call your application?1272 mvn package 1273 which mvn 1274 mvn -version 1276 java -jar target/demo-0.0.1-SNAPSHOT.jar --server.port=31415