public interface ContextResource extends Resource
javax.servlet.ServletContext but also
from plain classpath paths or relative file system paths (specified
without an explicit prefix, hence applying relative to the local
ResourceLoader's context).org.springframework.web.context.support.ServletContextResource| 限定符和类型 | 方法和说明 |
|---|---|
String |
getPathWithinContext()
Return the path within the enclosing 'context'.
|
contentLength, createRelative, exists, getDescription, getFile, getFilename, getURI, getURL, isFile, isOpen, isReadable, lastModified, readableChannelgetInputStreamString getPathWithinContext()
This is typically path relative to a context-specific root directory, e.g. a ServletContext root or a PortletContext root.
Copyright © 2020. All rights reserved.