接口的使用
org.springframework.core.io.ContextResource
使用ContextResource的程序包 程序包 说明 org.springframework.core.io Generic abstraction for (file-based) resources, used throughout the framework.org.springframework.web.context.support Classes supporting theorg.springframework.web.context
package, such as WebApplicationContext implementations and various utility classes.org.springframework.core.io中ContextResource的使用
实现ContextResource的org.springframework.core.io中的类 修饰符和类型 类 说明 protected static class
DefaultResourceLoader.ClassPathContextResource
ClassPathResource that explicitly expresses a context-relative path through implementing the ContextResource interface.org.springframework.web.context.support中ContextResource的使用
实现ContextResource的org.springframework.web.context.support中的类 修饰符和类型 类 说明 class
ServletContextResource
Resource
implementation forServletContext
resources, interpreting relative paths within the web application root directory.