org.springframework.boot.autoconfigure.template

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
    Author:
    Phillip Webb
    • Constructor Detail

      • TemplateLocation

        public TemplateLocation(String path)
    • Method Detail

      • exists

        public boolean exists(ResourcePatternResolver resolver)
        Determine if this template location exists using the specified ResourcePatternResolver.
        Parameters:
        resolver - the resolver used to test if the location exists
        Returns:
        true if the location exists.