My template do not see objects, passed from Spring.
My code:
public class PublicModelAndView extends ModelAndView { @Autowired TemplateModul
Thymeleaf does not work like JSP. It works by extending existing HTML elements with new attributes prefixed by "th:". And you can reference variables (and therefore call method on them) only in theses extra-attributes.
E.g. will work with thymeleaf
But ${contentOfTheParagraph}" will not.
${contentOfTheParagraph}"