接口的使用
org.springframework.web.servlet.resource.ResourceTransformer
使用ResourceTransformer的程序包 程序包 说明 org.springframework.web.servlet.config.annotation Annotation-based setup for Spring MVC.org.springframework.web.servlet.resource Support classes for serving static resources.org.springframework.web.servlet.config.annotation中ResourceTransformer的使用
返回变量类型为ResourceTransformer的类型的org.springframework.web.servlet.config.annotation中的方法 修饰符和类型 方法 说明 protected List<ResourceTransformer>ResourceChainRegistration. getResourceTransformers()参数类型为ResourceTransformer的org.springframework.web.servlet.config.annotation中的方法 修饰符和类型 方法 说明 ResourceChainRegistrationResourceChainRegistration. addTransformer(ResourceTransformer transformer)Add a resource transformer to the chain.org.springframework.web.servlet.resource中ResourceTransformer的使用
实现ResourceTransformer的org.springframework.web.servlet.resource中的类 修饰符和类型 类 说明 classAppCacheManifestTransformerAResourceTransformerimplementation that helps handling resources within HTML5 AppCache manifests for HTML5 offline applications.classCachingResourceTransformerAResourceTransformerthat checks aCacheto see if a previously transformed resource exists in the cache and returns it if found, and otherwise delegates to the resolver chain and saves the result in the cache.classCssLinkResourceTransformerAResourceTransformerimplementation that modifies links in a CSS file to match the public URL paths that should be exposed to clients (e.g.classResourceTransformerSupportA base class for aResourceTransformerwith an optional helper method for resolving public links within a transformed resource.返回变量类型为ResourceTransformer的类型的org.springframework.web.servlet.resource中的方法 修饰符和类型 方法 说明 List<ResourceTransformer>ResourceHttpRequestHandler. getResourceTransformers()Return the list of configured resource transformers.类型变量类型为ResourceTransformer的org.springframework.web.servlet.resource中的方法参数 修饰符和类型 方法 说明 voidResourceHttpRequestHandler. setResourceTransformers(List<ResourceTransformer> resourceTransformers)Configure the list ofResourceTransformersto use.