What template engine should I use in Spring MVC?

Viewed 15062

I'm learning Spring MVC and want to create a site. The main problem is a template system. Should I use JSP / JSF / Apache FreeMarker / Thymeleaf or something else?

I saw a lot of discussion on this subject, but they are all outdated. So, I'm curious, what is fine now?

3 Answers

There are many template engines available out there. But Spring Boot officially supports Thymeleaf, FreeMarker, Mustache and Groovy Templates. My preference is Thymeleaf because of its extendability.

There is a detailed comparison on various aspects of template engines explained in the below post.

https://springhow.com/spring-boot-template-engines-comparison/

Related