类的使用
org.springframework.web.reactive.config.ResourceHandlerRegistration
使用ResourceHandlerRegistration的程序包 程序包 说明 org.springframework.web.reactive.config Spring WebFlux configuration infrastructure.org.springframework.web.reactive.config中ResourceHandlerRegistration的使用
返回ResourceHandlerRegistration的org.springframework.web.reactive.config中的方法 修饰符和类型 方法 说明 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 theCacheControl
which should be used by the resource handler.