Uses of Interface
org.springframework.web.reactive.resource.VersionStrategy
Package
Description
Support classes for serving static resources.
-
Uses of VersionStrategy in org.springframework.web.reactive.resource
Modifier and TypeClassDescriptionclass
Abstract base class for filename suffix basedVersionStrategy
implementations, for example, "static/myresource-version.js".class
Abstract base class forVersionStrategy
implementations that insert a prefix into the URL path, for example, "version/static/myresource.js".class
AVersionStrategy
that calculates a Hex MD5 hash from the content of the resource and appends it to the file name, for example,"styles/main-e36d2e05253c6c7085a91522ce43a0b4.css"
.class
AVersionStrategy
that relies on a fixed version applied as a request path prefix, for example, reduced SHA, version name, release date, etc.Modifier and TypeMethodDescriptionprotected VersionStrategy
VersionResourceResolver.getStrategyForPath
(String requestPath) Find aVersionStrategy
for the request path of the requested resource.Modifier and TypeMethodDescriptionVersionResourceResolver.getStrategyMap()
Return the map with version strategies keyed by path pattern.Modifier and TypeMethodDescriptionVersionResourceResolver.addVersionStrategy
(VersionStrategy strategy, String... pathPatterns) Register a custom VersionStrategy to apply to resource URLs that match the given path patterns.Modifier and TypeMethodDescriptionvoid
VersionResourceResolver.setStrategyMap
(Map<String, VersionStrategy> map) Set a Map with URL paths as keys andVersionStrategy
as values.