org.thymeleaf.spring4.templateresolver.SpringResourceTemplateResolver Java Examples
The following examples show how to use
org.thymeleaf.spring4.templateresolver.SpringResourceTemplateResolver.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ThymeleafConfiguration.java From apm-agent-java with Apache License 2.0 | 5 votes |
@Bean public SpringResourceTemplateResolver thymeleafTemplateResolver() { SpringResourceTemplateResolver templateResolver = new SpringResourceTemplateResolver(); templateResolver.setPrefix("/thymeleaf/"); templateResolver.setSuffix(".html"); templateResolver.setTemplateMode("HTML5"); return templateResolver; }
Example #2
Source File: ThymeleafConfig.java From portal-de-servicos with MIT License | 5 votes |
@Bean public SpringResourceTemplateResolver defaultTemplateResolver() { SpringResourceTemplateResolver resolver = resolver(); resolver.setSuffix(".html"); resolver.setTemplateMode("HTML5"); resolver.setOrder(0); resolver.setName("HTML template resolver"); return resolver; }
Example #3
Source File: ThymeleafConfig.java From portal-de-servicos with MIT License | 5 votes |
@Bean public SpringResourceTemplateResolver xmlTemplateResolver() { SpringResourceTemplateResolver resolver = resolver(); resolver.setSuffix(".xml"); resolver.setTemplateMode("XML"); resolver.setOrder(1); resolver.setName("XML template resolver"); return resolver; }
Example #4
Source File: EmailConfiguration.java From tutorials with MIT License | 5 votes |
@Bean public SpringResourceTemplateResolver thymeleafTemplateResolver() { SpringResourceTemplateResolver templateResolver = new SpringResourceTemplateResolver(); templateResolver.setPrefix("/WEB-INF/views/mail/"); templateResolver.setSuffix(".html"); templateResolver.setTemplateMode("HTML"); templateResolver.setCharacterEncoding("UTF-8"); return templateResolver; }
Example #5
Source File: ThymeleafConfiguration.java From tutorials with MIT License | 5 votes |
@Bean public SpringResourceTemplateResolver thymeleafTemplateResolver() { SpringResourceTemplateResolver templateResolver = new SpringResourceTemplateResolver(); templateResolver.setPrefix("/WEB-INF/views/"); templateResolver.setSuffix(".html"); templateResolver.setTemplateMode("HTML5"); return templateResolver; }
Example #6
Source File: WebMvcConfig.java From thymeleafexamples-layouts with Apache License 2.0 | 5 votes |
@Bean public ITemplateResolver templateResolver() { SpringResourceTemplateResolver resolver = new SpringResourceTemplateResolver(); resolver.setPrefix(VIEWS); resolver.setSuffix(".html"); resolver.setTemplateMode(TemplateMode.HTML); resolver.setCharacterEncoding("UTF-8"); resolver.setCacheable(false); return resolver; }