Uses of Class
org.springframework.web.servlet.config.annotation.ResourceHandlerRegistration
Packages that use ResourceHandlerRegistration
Package
Description
Annotation-based setup for Spring MVC.
- 
Uses of ResourceHandlerRegistration in org.springframework.web.servlet.config.annotationMethods in org.springframework.web.servlet.config.annotation that return ResourceHandlerRegistrationModifier and TypeMethodDescriptionResourceHandlerRegistry.addResourceHandler(String... pathPatterns) Add a resource handler to serve static resources.ResourceHandlerRegistration.addResourceLocations(String... locations) Add one or more resource locations from which to serve static content.ResourceHandlerRegistration.addResourceLocations(Resource... locations) Configure locations to serve static resources from based on pre-resolvedResourcereferences.ResourceHandlerRegistration.setCacheControl(CacheControl cacheControl) Specify theCacheControlwhich should be used by the resource handler.ResourceHandlerRegistration.setCachePeriod(Integer cachePeriod) Specify the cache period for the resources served by the resource handler, in seconds.ResourceHandlerRegistration.setEtagGenerator(Function<Resource, String> etagGenerator) Configure a generator function that will be used to create the ETag information, given aResourcethat is about to be written to the response.ResourceHandlerRegistration.setOptimizeLocations(boolean optimizeLocations) Set whether to optimize the specified locations through an existence check on startup, filtering non-existing directories upfront so that they do not have to be checked on every resource access.ResourceHandlerRegistration.setUseLastModified(boolean useLastModified) Set whether theResource.lastModified()information should be used to drive HTTP responses.