Add the dependency to your pom.xml
Note that 2.0.x versions are compatible with Thymeleaf 2.0.x versions, while 2.1.x versions are compatible with Thymeleaf 2.1.x versions.
Add PagesDialect to your Thymeleaf configuration within the Spring configuration file
[Optional] If you don't use a Servlet 3.0+ capable container or you have the attribute metadata-complete="true" in your web-app element, add to your web.xml
[Optional] If you want to use a SNAPSHOT version and you haven't got it, add Sonatype Snapshot repository to your pom.xml