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

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

Introduction

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

Prototype

public String getMode() 

Source Link

Usage

From source file:com.ctv.TemplateResolverCustom.java

public TemplateResolverCustom(ThymeleafProperties properties, IResourceResolver resourceResolver,
        Integer order) {//w w w .ja va  2s.  com
    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());
}