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

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

Introduction

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

Prototype

public Charset getEncoding() 

Source Link

Usage

From source file:com.ctv.TemplateResolverCustom.java

public TemplateResolverCustom(ThymeleafProperties properties, IResourceResolver resourceResolver,
        Integer order) {/*  w ww. ja v  a 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());
}