Thymeleaf with Spring MVC projects

November 12, 2020

Thymeleaf is a popular template system can be used with Spring MVC

It can process HTML, XML, text, JavaScript or CSS files

Auto configuration with Spring Boot

You can do the auto configuration if you use the following dependencies.

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>

You have to place the HTML files at resources/templates location and no other configuration is needed