Skip to main content

Template Resolution

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

Fresher Notes Template resolution is the step that turns the view name returned by a controller into a real template file. Two steps : Spring MVC first picks a ViewResolver to create a View , then the engine finds the template file using prefix and suffix. Defaults : for Thymeleaf in Boot, prefix classpath:/templates/ and suffix .html , so "home" becomes templates/home.html .

More lessons in View Technologies