Uses of Class
org.springframework.web.reactive.config.ResourceHandlerRegistration
Package
Description
Spring WebFlux configuration infrastructure.
-
Uses of ResourceHandlerRegistration in org.springframework.web.reactive.config
Modifier and TypeMethodDescriptionResourceHandlerRegistry.addResourceHandler
(String... patterns) Add a resource handler for serving static resources based on the specified URL path patterns.ResourceHandlerRegistration.addResourceLocations
(String... resourceLocations) Add one or more resource locations from which to serve static content.ResourceHandlerRegistration.setCacheControl
(CacheControl cacheControl) Specify theCacheControl
which should be used by the resource handler.ResourceHandlerRegistration.setEtagGenerator
(Function<Resource, String> etagGenerator) Configure a generator function that will be used to create the ETag information, given aResource
that 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.