类的使用
org.springframework.format.support.FormattingConversionService
使用FormattingConversionService的程序包 程序包 说明 org.springframework.format.support Support classes for the formatting package, providing common implementations as well as adapters.org.springframework.test.web.servlet.setup Contains built-inMockMvcBuilder
implementations.org.springframework.web.reactive.config Spring WebFlux configuration infrastructure.org.springframework.web.servlet.config.annotation Annotation-based setup for Spring MVC.org.springframework.format.support中FormattingConversionService的使用
org.springframework.format.support中FormattingConversionService的子类 修饰符和类型 类 说明 class
DefaultFormattingConversionService
A specialization ofFormattingConversionService
configured by default with converters and formatters appropriate for most applications.返回FormattingConversionService的org.springframework.format.support中的方法 修饰符和类型 方法 说明 FormattingConversionService
FormattingConversionServiceFactoryBean. getObject()
返回变量类型为FormattingConversionService的类型的org.springframework.format.support中的方法 修饰符和类型 方法 说明 Class<? extends FormattingConversionService>
FormattingConversionServiceFactoryBean. getObjectType()
org.springframework.test.web.servlet.setup中FormattingConversionService的使用
参数类型为FormattingConversionService的org.springframework.test.web.servlet.setup中的方法 修饰符和类型 方法 说明 StandaloneMockMvcBuilder
StandaloneMockMvcBuilder. setConversionService(FormattingConversionService conversionService)
Provide a conversion service with custom formatters and converters.org.springframework.web.reactive.config中FormattingConversionService的使用
返回FormattingConversionService的org.springframework.web.reactive.config中的方法 修饰符和类型 方法 说明 FormattingConversionService
WebFluxConfigurationSupport. webFluxConversionService()
Return aFormattingConversionService
for use with annotated controllers.参数类型为FormattingConversionService的org.springframework.web.reactive.config中的方法 修饰符和类型 方法 说明 protected ConfigurableWebBindingInitializer
WebFluxConfigurationSupport. getConfigurableWebBindingInitializer(FormattingConversionService webFluxConversionService, Validator webFluxValidator)
Return theConfigurableWebBindingInitializer
to use for initializing allWebDataBinder
instances.RequestMappingHandlerAdapter
WebFluxConfigurationSupport. requestMappingHandlerAdapter(ReactiveAdapterRegistry reactiveAdapterRegistry, ServerCodecConfigurer serverCodecConfigurer, FormattingConversionService conversionService, Validator validator)
org.springframework.web.servlet.config.annotation中FormattingConversionService的使用
返回FormattingConversionService的org.springframework.web.servlet.config.annotation中的方法 修饰符和类型 方法 说明 FormattingConversionService
WebMvcConfigurationSupport. mvcConversionService()
Return aFormattingConversionService
for use with annotated controllers.参数类型为FormattingConversionService的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 ConfigurableWebBindingInitializer
WebMvcConfigurationSupport. getConfigurableWebBindingInitializer(FormattingConversionService mvcConversionService, Validator mvcValidator)
Return theConfigurableWebBindingInitializer
to use for initializing allWebDataBinder
instances.protected Object[]
WebMvcConfigurationSupport. getInterceptors(FormattingConversionService mvcConversionService, ResourceUrlProvider mvcResourceUrlProvider)
Provide access to the shared handler interceptors used to configureHandlerMapping
instances with.CompositeUriComponentsContributor
WebMvcConfigurationSupport. mvcUriComponentsContributor(FormattingConversionService conversionService, RequestMappingHandlerAdapter requestMappingHandlerAdapter)
Return an instance ofCompositeUriComponentsContributor
for use withMvcUriComponentsBuilder
.RequestMappingHandlerAdapter
WebMvcConfigurationSupport. requestMappingHandlerAdapter(ContentNegotiationManager contentNegotiationManager, FormattingConversionService conversionService, Validator validator)
Returns aRequestMappingHandlerAdapter
for processing requests through annotated controller methods.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.