接口 VersionStrategy
- 所有超级接口:
VersionPathStrategy
public interface VersionStrategy extends VersionPathStrategy
An extension ofVersionPathStrategy
that adds a method to determine the actual version of aResource
.- 从以下版本开始:
- 4.1
- 作者:
- Brian Clozel, Rossen Stoyanchev
- 另请参阅:
VersionResourceResolver
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 String
getResourceVersion(Resource resource)
Determine the version for the given resource.从接口继承的方法 org.springframework.web.servlet.resource.VersionPathStrategy
addVersion, extractVersion, removeVersion
方法详细资料
getResourceVersion
String getResourceVersion(Resource resource)
Determine the version for the given resource.- 参数:
resource
- the resource to check- 返回:
- the version (never
null
)