There’s a bunch of Java template engines, but one of them has been getting some momentum these days: Thymeleaf.
Thymeleaf is a modern server-side Java template engine for both web and standalone environments. Thymeleaf is a Java template engine for processing and creating HTML, XML, JavaScript, CSS, and text.
Thymeleaf’s main goal is to bring elegant natural templates to your development workflow — HTML that can be correctly displayed in browsers and also work as static prototypes, allowing for stronger collaboration in development teams.
The library is extremely extensible and its natural templating capability ensures templates can be prototyped without a back-end – which makes development very fast when compared with other popular template engines such as JSP.