use of org.springframework.web.servlet.resource.FixedVersionStrategy in project ORCID-Source by ORCID.
the class ResourceHandlersConfiguration method addResourceHandlers.
@Override
public void addResourceHandlers(ResourceHandlerRegistry registry) {
String releaseVersion = ReleaseNameUtils.getReleaseName();
VersionResourceResolver versionResourceResolver = new VersionResourceResolver().addVersionStrategy(new FixedVersionStrategy(releaseVersion), "/**");
registry.addResourceHandler("/static/**").addResourceLocations("/static/").setCachePeriod(1206297260).resourceChain(true).addResolver(versionResourceResolver);
}
Aggregations