Example usage for org.springframework.boot.autoconfigure.thymeleaf ThymeleafProperties isCache

List of usage examples for org.springframework.boot.autoconfigure.thymeleaf ThymeleafProperties isCache

Introduction

In this page you can find the example usage for org.springframework.boot.autoconfigure.thymeleaf ThymeleafProperties isCache.

Prototype

public boolean isCache() 

Source Link

Usage

From source file:com.ctv.TemplateResolverCustom.java

public TemplateResolverCustom(ThymeleafProperties properties, IResourceResolver resourceResolver,
        Integer order) {//  w  w  w . j a  va 2 s. co  m
    super();
    this.setOrder(order); // no matter what order I use here, TemplateResolver will always be prefered
    this.setResourceResolver(resourceResolver);
    this.setPrefix(properties.getPrefix());
    this.setSuffix(properties.getSuffix());
    this.setTemplateMode(properties.getMode());
    this.setCharacterEncoding(properties.getEncoding());
    this.setCacheable(properties.isCache());
}