接口的使用
org.springframework.web.servlet.resource.VersionPathStrategy
使用VersionPathStrategy的程序包 程序包 说明 org.springframework.web.servlet.resource Support classes for serving static resources.org.springframework.web.servlet.resource中VersionPathStrategy的使用
org.springframework.web.servlet.resource中VersionPathStrategy的子接口 修饰符和类型 接口 说明 interface
VersionStrategy
An extension ofVersionPathStrategy
that adds a method to determine the actual version of aResource
.实现VersionPathStrategy的org.springframework.web.servlet.resource中的类 修饰符和类型 类 说明 class
AbstractVersionStrategy
Abstract base class forVersionStrategy
implementations.protected static class
AbstractVersionStrategy.FileNameVersionPathStrategy
File name-basedVersionPathStrategy
, e.g.protected static class
AbstractVersionStrategy.PrefixVersionPathStrategy
A prefix-basedVersionPathStrategy
, e.g.class
ContentVersionStrategy
AVersionStrategy
that calculates an Hex MD5 hashes from the content of the resource and appends it to the file name, e.g.class
FixedVersionStrategy
AVersionStrategy
that relies on a fixed version applied as a request path prefix, e.g. reduced SHA, version name, release date, etc.返回VersionPathStrategy的org.springframework.web.servlet.resource中的方法 修饰符和类型 方法 说明 VersionPathStrategy
AbstractVersionStrategy. getVersionPathStrategy()
参数类型为VersionPathStrategy的org.springframework.web.servlet.resource中的构造器 构造器 说明 AbstractVersionStrategy(VersionPathStrategy pathStrategy)