# Uses of Class
org.springframework.web.servlet.resource.VersionResourceResolver

Packages that use VersionResourceResolver
Package
Description
org.springframework.web.servlet.resource
Support classes for serving static resources.

## Uses of VersionResourceResolver in org.springframework.web.servlet.resource

Methods in org.springframework.web.servlet.resource that return VersionResourceResolver
Modifier and Type
Method
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.