Search in sources :

Example 1 with FileResourceResolver

use of org.thymeleaf.resourceresolver.FileResourceResolver in project mxisd by kamax-io.

the class ThymeleafConfig method getFileSystemResolver.

@Bean
public TemplateResolver getFileSystemResolver() {
    TemplateResolver resolver = new TemplateResolver();
    resolver.setPrefix("");
    resolver.setSuffix("");
    resolver.setCacheable(false);
    resolver.setOrder(1);
    resolver.setResourceResolver(new FileResourceResolver());
    return resolver;
}
Also used : TemplateResolver(org.thymeleaf.templateresolver.TemplateResolver) FileResourceResolver(org.thymeleaf.resourceresolver.FileResourceResolver) Bean(org.springframework.context.annotation.Bean)

Aggregations

Bean (org.springframework.context.annotation.Bean)1 FileResourceResolver (org.thymeleaf.resourceresolver.FileResourceResolver)1 TemplateResolver (org.thymeleaf.templateresolver.TemplateResolver)1