类的使用
org.springframework.web.servlet.resource.ResourceUrlProvider
使用ResourceUrlProvider的程序包 程序包 说明 org.springframework.web.servlet.config.annotation Annotation-based setup for Spring MVC.org.springframework.web.servlet.resource Support classes for serving static resources.org.springframework.web.servlet.config.annotation中ResourceUrlProvider的使用
返回ResourceUrlProvider的org.springframework.web.servlet.config.annotation中的方法 修饰符和类型 方法 说明 ResourceUrlProvider
WebMvcConfigurationSupport. mvcResourceUrlProvider()
AResourceUrlProvider
bean for use with the MVC dispatcher.参数类型为ResourceUrlProvider的org.springframework.web.servlet.config.annotation中的方法 修饰符和类型 方法 说明 BeanNameUrlHandlerMapping
WebMvcConfigurationSupport. beanNameHandlerMapping(FormattingConversionService conversionService, ResourceUrlProvider resourceUrlProvider)
Return aBeanNameUrlHandlerMapping
ordered at 2 to map URL paths to controller bean names.protected Object[]
WebMvcConfigurationSupport. getInterceptors(FormattingConversionService mvcConversionService, ResourceUrlProvider mvcResourceUrlProvider)
Provide access to the shared handler interceptors used to configureHandlerMapping
instances with.RequestMappingHandlerMapping
WebMvcConfigurationSupport. requestMappingHandlerMapping(ContentNegotiationManager contentNegotiationManager, FormattingConversionService conversionService, ResourceUrlProvider resourceUrlProvider)
Return aRequestMappingHandlerMapping
ordered at 0 for mapping requests to annotated controllers.HandlerMapping
WebMvcConfigurationSupport. resourceHandlerMapping(UrlPathHelper urlPathHelper, PathMatcher pathMatcher, ContentNegotiationManager contentNegotiationManager, FormattingConversionService conversionService, ResourceUrlProvider resourceUrlProvider)
Return a handler mapping ordered at Integer.MAX_VALUE-1 with mapped resource handlers.RouterFunctionMapping
WebMvcConfigurationSupport. routerFunctionMapping(FormattingConversionService conversionService, ResourceUrlProvider resourceUrlProvider)
Return aRouterFunctionMapping
ordered at 3 to map router functions.HandlerMapping
WebMvcConfigurationSupport. viewControllerHandlerMapping(PathMatcher pathMatcher, UrlPathHelper urlPathHelper, FormattingConversionService conversionService, ResourceUrlProvider resourceUrlProvider)
Return a handler mapping ordered at 1 to map URL paths directly to view names.org.springframework.web.servlet.resource中ResourceUrlProvider的使用
返回ResourceUrlProvider的org.springframework.web.servlet.resource中的方法 修饰符和类型 方法 说明 ResourceUrlProvider
ResourceTransformerSupport. getResourceUrlProvider()
Return the configuredResourceUrlProvider
.参数类型为ResourceUrlProvider的org.springframework.web.servlet.resource中的方法 修饰符和类型 方法 说明 void
ResourceTransformerSupport. setResourceUrlProvider(ResourceUrlProvider resourceUrlProvider)
Configure aResourceUrlProvider
to use when resolving the public URL of links in a transformed resource (e.g. import links in a CSS file).参数类型为ResourceUrlProvider的org.springframework.web.servlet.resource中的构造器 构造器 说明 ResourceUrlProviderExposingInterceptor(ResourceUrlProvider resourceUrlProvider)