use of org.thymeleaf.templateresolver.StringTemplateResolver in project zhcet-web by zhcet-amu.
the class TemplateConfig method stringTemplateResolver.
private ITemplateResolver stringTemplateResolver() {
final StringTemplateResolver templateResolver = new StringTemplateResolver();
templateResolver.setOrder(4);
// No resolvable pattern, will simply process as a String template everything not previously matched
templateResolver.setTemplateMode(TemplateMode.HTML);
templateResolver.setCacheable(thymeleafProperties.isCache());
return templateResolver;
}
Aggregations