类的使用
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中的方法 修饰符和类型 方法 说明 ResourceHandlerRegistry
ResourceHandlerRegistry. setOrder(int order)
Specify the order to use for resource handling relative to otherHandlerMappings
configured in the Spring MVC application context.参数类型为ResourceHandlerRegistry的org.springframework.web.servlet.config.annotation中的方法 修饰符和类型 方法 说明 protected void
DelegatingWebMvcConfiguration. addResourceHandlers(ResourceHandlerRegistry registry)
protected void
WebMvcConfigurationSupport. addResourceHandlers(ResourceHandlerRegistry registry)
Override this method to add resource handlers for serving static resources.default void
WebMvcConfigurer. 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.void
WebMvcConfigurerAdapter. 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.