Package | Description |
---|---|
org.springframework.web.servlet.resource |
Support classes for serving static resources.
|
Modifier and Type | Method and Description |
---|---|
VersionResourceResolver |
VersionResourceResolver.addContentVersionStrategy(java.lang.String... pathPatterns)
Insert a content-based version in resource URLs that match the given path
patterns.
|
VersionResourceResolver |
VersionResourceResolver.addFixedVersionStrategy(java.lang.String version,
java.lang.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,
java.lang.String... pathPatterns)
Register a custom VersionStrategy to apply to resource URLs that match the
given path patterns.
|