Objective: loading a value in the template from the messages.properties
file.
Start from the following:
To build and run:-bash-4.2$ tree . +-- pom.xml +-- src +-- main +-- java | +-- com | +-- example | +-- demo | +-- HomeController.java | +-- SpringBoot03Application.java +-- resources +-- messages.properties +-- templates +-- hometemplate.html 8 directories, 5 files -bash-4.2$ pwd /u/dgerman/apache/htdocs/spring-boot/fall2019/step03 -bash-4.2$
mvn package
java -jar target/demo-0.0.1-SNAPSHOT.jar --server.port=31415
Again, please be sure to use your own port number.