Add the dependence to the 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 the dialect to your Thymeleaf configuration
Download the latest .jar from the HTML5ValDialect download page and add it to your classpath.
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 the dialect to your Thymeleaf configuration: