类 ResourceEntityResolver

  • 所有已实现的接口:
    EntityResolver

    public class ResourceEntityResolver
    extends DelegatingEntityResolver
    EntityResolver implementation that tries to resolve entity references through a ResourceLoader (usually, relative to the resource base of an ApplicationContext), if applicable. Extends DelegatingEntityResolver to also provide DTD and XSD lookup.

    Allows to use standard XML entities to include XML snippets into an application context definition, for example to split a large XML file into various modules. The include paths can be relative to the application context's resource base as usual, instead of relative to the JVM working directory (the XML parser's default).

    Note: In addition to relative paths, every URL that specifies a file in the current system root, i.e. the JVM working directory, will be interpreted relative to the application context too.

    从以下版本开始:
    31.07.2003
    作者:
    Juergen Hoeller
    另请参阅:
    ResourceLoader, ApplicationContext