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 Details

    • TemplateLocation

      public TemplateLocation(String path)
  • Method Details

    • 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.
    • toString

      public String toString()
      Overrides:
      toString in class Object