I am trying to find a better way to set values to thymeleaf template, because I have a feeling the way I do it is wrong.
Say I have a controller with two mappings: