Class TemplateLocation
- java.lang.Object
- org.springframework.boot.autoconfigure.template.TemplateLocation
public class TemplateLocation extends Object
Contains a location that templates can be loaded from.- Since:
- 1.2.1
Constructor Summary
Constructors Constructor Description TemplateLocation(String path)
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
exists(org.springframework.core.io.support.ResourcePatternResolver resolver)
Determine if this template location exists using the specifiedResourcePatternResolver
.String
toString()
Constructor Detail
TemplateLocation
public TemplateLocation(String path)
Method Detail
exists
public boolean exists(org.springframework.core.io.support.ResourcePatternResolver resolver)
Determine if this template location exists using the specifiedResourcePatternResolver
.- Parameters:
resolver
- the resolver used to test if the location exists- Returns:
true
if the location exists.