类的使用
org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry
使用ResourceHandlerRegistry的程序包 程序包 说明 org.springframework.web.servlet.config.annotation Annotation-based setup for Spring MVC.org.springframework.web.servlet.config.annotation中ResourceHandlerRegistry的使用
返回ResourceHandlerRegistry的org.springframework.web.servlet.config.annotation中的方法 修饰符和类型 方法 说明 ResourceHandlerRegistryResourceHandlerRegistry. setOrder(int order)Specify the order to use for resource handling relative to otherHandlerMappingsconfigured in the Spring MVC application context.参数类型为ResourceHandlerRegistry的org.springframework.web.servlet.config.annotation中的方法 修饰符和类型 方法 说明 protected voidDelegatingWebMvcConfiguration. addResourceHandlers(ResourceHandlerRegistry registry)protected voidWebMvcConfigurationSupport. addResourceHandlers(ResourceHandlerRegistry registry)Override this method to add resource handlers for serving static resources.default voidWebMvcConfigurer. addResourceHandlers(ResourceHandlerRegistry registry)Add handlers to serve static resources such as images, js, and, css files from specific locations under web application root, the classpath, and others.voidWebMvcConfigurerAdapter. addResourceHandlers(ResourceHandlerRegistry registry)已过时。Add handlers to serve static resources such as images, js, and, css files from specific locations under web application root, the classpath, and others.