Package | Description |
---|---|
org.springframework.web.servlet.resource |
Support classes for serving static resources.
|
Modifier and Type | Method and Description |
---|---|
VersionResourceResolver |
VersionResourceResolver.addContentVersionStrategy(String... pathPatterns)
Insert a content-based version in resource URLs that match the given path
patterns.
|
VersionResourceResolver |
VersionResourceResolver.addFixedVersionStrategy(String version,
String... pathPatterns)
Insert a fixed, prefix-based version in resource URLs that match the given
path patterns, for example:
"{version}/js/main.js" . |
VersionResourceResolver |
VersionResourceResolver.addVersionStrategy(VersionStrategy strategy,
String... pathPatterns)
Register a custom VersionStrategy to apply to resource URLs that match the
given path patterns.
|