类 TemplateLocation
- java.lang.Object
- org.springframework.boot.autoconfigure.template.TemplateLocation
public class TemplateLocation extends Object
Contains a location that templates can be loaded from.- 从以下版本开始:
- 1.2.1
构造器概要
构造器 构造器 说明 TemplateLocation(String path)
构造器详细资料
TemplateLocation
public TemplateLocation(String path)
方法详细资料
exists
public boolean exists(org.springframework.core.io.support.ResourcePatternResolver resolver)
Determine if this template location exists using the specifiedResourcePatternResolver
.- 参数:
resolver
- the resolver used to test if the location exists- 返回:
true
if the location exists.