Package | Description |
---|---|
org.springframework.web.servlet.resource |
Support classes for serving static resources.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractVersionStrategy
Abstract base class for
VersionStrategy implementations. |
class |
ContentVersionStrategy
A
VersionStrategy that calculates a Hex MD5 hash from the content
of the resource and appends it to the file name, e.g. |
class |
FixedVersionStrategy
A
VersionStrategy that relies on a fixed version applied as a request
path prefix, e.g. |
Modifier and Type | Method and Description |
---|---|
protected VersionStrategy |
VersionResourceResolver.getStrategyForPath(String requestPath)
Find a
VersionStrategy for the request path of the requested resource. |
Modifier and Type | Method and Description |
---|---|
Map<String,VersionStrategy> |
VersionResourceResolver.getStrategyMap()
Return the map with version strategies keyed by path pattern.
|
Modifier and Type | Method and Description |
---|---|
VersionResourceResolver |
VersionResourceResolver.addVersionStrategy(VersionStrategy strategy,
String... pathPatterns)
Register a custom VersionStrategy to apply to resource URLs that match the
given path patterns.
|
Modifier and Type | Method and Description |
---|---|
void |
VersionResourceResolver.setStrategyMap(Map<String,VersionStrategy> map)
Set a Map with URL paths as keys and
VersionStrategy as values. |