spring-framework / org.springframework.web.reactive.resource / VersionResourceResolver / addVersionStrategy

addVersionStrategy

open fun addVersionStrategy(strategy: VersionStrategy, vararg pathPatterns: String): VersionResourceResolver

Register a custom VersionStrategy to apply to resource URLs that match the given path patterns.

Parameters

strategy - the custom strategy

pathPatterns - one or more resource URL path patterns, relative to the pattern configured with the resource handler

Return
the current instance for chained method invocation

See Also
VersionStrategy