类的使用
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中的方法 修饰符和类型 方法 说明 ResourceUrlProviderWebMvcConfigurationSupport. mvcResourceUrlProvider()AResourceUrlProviderbean for use with the MVC dispatcher.参数类型为ResourceUrlProvider的org.springframework.web.servlet.config.annotation中的方法 修饰符和类型 方法 说明 BeanNameUrlHandlerMappingWebMvcConfigurationSupport. beanNameHandlerMapping(FormattingConversionService conversionService, ResourceUrlProvider resourceUrlProvider)Return aBeanNameUrlHandlerMappingordered 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 configureHandlerMappinginstances with.RequestMappingHandlerMappingWebMvcConfigurationSupport. requestMappingHandlerMapping(ContentNegotiationManager contentNegotiationManager, FormattingConversionService conversionService, ResourceUrlProvider resourceUrlProvider)Return aRequestMappingHandlerMappingordered at 0 for mapping requests to annotated controllers.HandlerMappingWebMvcConfigurationSupport. 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.RouterFunctionMappingWebMvcConfigurationSupport. routerFunctionMapping(FormattingConversionService conversionService, ResourceUrlProvider resourceUrlProvider)Return aRouterFunctionMappingordered at 3 to map router functions.HandlerMappingWebMvcConfigurationSupport. 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中的方法 修饰符和类型 方法 说明 ResourceUrlProviderResourceTransformerSupport. getResourceUrlProvider()Return the configuredResourceUrlProvider.参数类型为ResourceUrlProvider的org.springframework.web.servlet.resource中的方法 修饰符和类型 方法 说明 voidResourceTransformerSupport. setResourceUrlProvider(ResourceUrlProvider resourceUrlProvider)Configure aResourceUrlProviderto 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)