Package | Description |
---|---|
org.springframework.web.reactive.config |
Spring WebFlux configuration infrastructure.
|
Modifier and Type | Method and Description |
---|---|
ResourceHandlerRegistration |
ResourceHandlerRegistry.addResourceHandler(String... patterns)
Add a resource handler for serving static resources based on the specified
URL path patterns.
|
ResourceHandlerRegistration |
ResourceHandlerRegistration.addResourceLocations(String... resourceLocations)
Add one or more resource locations from which to serve static content.
|
ResourceHandlerRegistration |
ResourceHandlerRegistration.setCacheControl(CacheControl cacheControl)
Specify the
CacheControl which should be used
by the resource handler. |
ResourceHandlerRegistration |
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 |
ResourceHandlerRegistration.setUseLastModified(boolean useLastModified)
Set whether the
Resource.lastModified() information should be used to drive HTTP responses. |