SPRING CONCEPTS

View / template

Spring Concepts / View / template

A view presents application data to the user.

Understand the idea

A server-side template combines markup with model values and produces the HTML sent to the browser. Returning a view name delegates rendering to the view resolver and engine. React instead builds the interactive interface in the browser from API data.

A concrete example

return "form";
→ src/main/resources/templates/form.html

In the application

Manual 01 uses list.html and form.html. Manual 03 uses React components rather than server templates.

Opening a Thymeleaf file directly in a browser does not run its server-side expressions.

See it in a working stage

Related concepts

Read the official documentation ↗
Java 21 · Spring Boot 4.1.1 · Edupoly