类 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
作者:
Phillip Webb
  • 构造器详细资料

    • TemplateLocation

      public TemplateLocation(String path)
  • 方法详细资料

    • exists

      public boolean exists(ResourcePatternResolver resolver)
      Determine if this template location exists using the specified ResourcePatternResolver.
      参数:
      resolver - the resolver used to test if the location exists
      返回:
      true if the location exists.
    • toString

      public String toString()
      覆盖:
      toString 在类中 Object