类的使用
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中的方法 修饰符和类型 方法 说明 ResourceHandlerRegistrationResourceHandlerRegistry. addResourceHandler(String... patterns)Add a resource handler for serving static resources based on the specified URL path patterns.ResourceHandlerRegistrationResourceHandlerRegistration. addResourceLocations(String... resourceLocations)Add one or more resource locations from which to serve static content.ResourceHandlerRegistrationResourceHandlerRegistration. setCacheControl(CacheControl cacheControl)Specify theCacheControlwhich should be used by the resource handler.