Fixed Thymeleaf configuration and template file to get the code working.