use of org.thymeleaf.extras.java8time.dialect.Java8TimeDialect in project DisCal-Discord-Bot by NovaFox161.
the class ThymeleafTemplateEngine method initialize.
/**
* Initializes and sets the template resolver
*/
private void initialize(ITemplateResolver templateResolver) {
templateEngine = new org.thymeleaf.TemplateEngine();
templateEngine.setTemplateResolver(templateResolver);
templateEngine.addDialect(new Java8TimeDialect());
}
use of org.thymeleaf.extras.java8time.dialect.Java8TimeDialect in project tutorials by eugenp.
the class WebMVCConfig method templateEngine.
private TemplateEngine templateEngine(ITemplateResolver templateResolver) {
SpringTemplateEngine engine = new SpringTemplateEngine();
engine.addDialect(new LayoutDialect(new GroupingStrategy()));
engine.addDialect(new Java8TimeDialect());
engine.setTemplateResolver(templateResolver);
engine.setTemplateEngineMessageSource(messageSource());
return engine;
}
Aggregations