类 SpringResourceLoader


  • public class SpringResourceLoader
    extends org.apache.velocity.runtime.resource.loader.ResourceLoader
    Velocity ResourceLoader adapter that loads via a Spring ResourceLoader. Used by VelocityEngineFactory for any resource loader path that cannot be resolved to a java.io.File.

    Note that this loader does not allow for modification detection: Use Velocity's default FileResourceLoader for java.io.File resources.

    Expects "spring.resource.loader" and "spring.resource.loader.path" application attributes in the Velocity runtime: the former of type org.springframework.core.io.ResourceLoader, the latter a String.

    从以下版本开始:
    14.03.2004
    作者:
    Juergen Hoeller
    另请参阅:
    VelocityEngineFactory.setResourceLoaderPath(java.lang.String), ResourceLoader, FileResourceLoader