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

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

Introduction

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

Prototype

public String getPrefix() 

Source Link

Usage

From source file:com.ctv.TemplateResolverCustom.java

public TemplateResolverCustom(ThymeleafProperties properties, IResourceResolver resourceResolver,
        Integer order) {/*ww w  .  j ava  2s .c  o 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());
}