Class ContentVersionStrategy
java.lang.Object
org.springframework.web.reactive.resource.AbstractFileNameVersionStrategy
org.springframework.web.reactive.resource.ContentVersionStrategy
- All Implemented Interfaces:
- VersionStrategy
A 
VersionStrategy 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".- Since:
- 5.0
- Author:
- Rossen Stoyanchev, Brian Clozel
- See Also:
- 
Field SummaryFields inherited from class org.springframework.web.reactive.resource.AbstractFileNameVersionStrategylogger
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionreactor.core.publisher.Mono<String>getResourceVersion(Resource resource) Determine the version for the given resource.Methods inherited from class org.springframework.web.reactive.resource.AbstractFileNameVersionStrategyaddVersion, extractVersion, removeVersion
- 
Constructor Details- 
ContentVersionStrategypublic ContentVersionStrategy()
 
- 
- 
Method Details- 
getResourceVersionDescription copied from interface:VersionStrategyDetermine the version for the given resource.- Parameters:
- resource- the resource to check
- Returns:
- the resource version
 
 
-