Skip to main content

Thymeleaf

Learn Thymeleaf (View Technologies, Spring MVC) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.

Fresher Notes Thymeleaf is a server-side template engine that writes logic as HTML attributes such as th:text and th:each , so templates open correctly in a browser. In Spring MVC the controller returns a name, ThymeleafViewResolver finds templates/name.html and renders it with the model. Spring Boot auto-configures it when spring-boot-starter-thymeleaf is on the classpath, with no extra setup.

More lessons in View Technologies