Writing our First Template
Explore how to create your first Thymeleaf template within a Spring Boot application. Understand how to use namespace declarations and expressions to render dynamic content in HTML pages, and practice running and refreshing your project to see the results in action.
We'll cover the following...
We'll cover the following...
We’ll start by creating a new Spring Boot project. The code is given at the end of this lesson for reference.
The index.html file
Let’s add a new HTML page at src/main/resources/templates called index.html ...