类 DelegatingWebMvcConfiguration
java.lang.Object
cn.taketoday.context.support.ApplicationObjectSupport
cn.taketoday.web.config.WebMvcConfigurationSupport
cn.taketoday.web.config.DelegatingWebMvcConfiguration
- 所有已实现的接口:
cn.taketoday.beans.factory.Aware,cn.taketoday.context.ApplicationContextAware
A subclass of
WebMvcConfigurationSupport that detects and delegates
to all beans of type WebMvcConfigurer allowing them to customize the
configuration provided by WebMvcConfigurationSupport. This is the
class actually imported by @EnableWebMvc.- 从以下版本开始:
- 4.0 2022/10/31 15:33
- 作者:
- Rossen Stoyanchev, Harry Yang
-
字段概要
字段从类继承的字段 cn.taketoday.context.support.ApplicationObjectSupport
applicationContext, log, messageSourceAccessor -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected voidaddCorsMappings(CorsRegistry registry) Override this method to configure cross origin requests processing.protected voidaddFormatters(cn.taketoday.format.FormatterRegistry registry) Override this method to add customConverterand/orFormatterdelegates to the commonFormattingConversionService.protected voidaddInterceptors(InterceptorRegistry registry) Override this method to add Framework MVC interceptors for pre- and post-processing of controller invocation.protected voidaddResourceHandlers(ResourceHandlerRegistry registry) Override this method to add resource handlers for serving static resources.protected voidaddViewControllers(ViewControllerRegistry registry) Override this method to add view controllers.protected voidconfigureAsyncSupport(AsyncSupportConfigurer configurer) Override this method to configure asynchronous request processing options.protected voidOverride this method to configure content negotiation.protected voidOverride this method to configure "default" Servlet handling.protected voidOverride this method to configure the list ofHandlerExceptionHandlersto use.protected voidconfigureMessageConverters(List<HttpMessageConverter<?>> converters) Override this method to add customHttpMessageConvertersto use with theParameterResolvingStrategyand theReturnValueHandlerManager.protected voidconfigurePathMatch(PathMatchConfigurer configurer) Override this method to configure path matching options.protected voidconfigureViewResolvers(ViewResolverRegistry registry) Override this method to configure view resolution.protected voidextendMessageConverters(List<HttpMessageConverter<?>> converters) Override this method to extend or modify the list of converters after it has been configured.protected cn.taketoday.validation.ValidatorOverride this method to provide a customValidator.protected voidprotected void从类继承的方法 cn.taketoday.web.config.WebMvcConfigurationSupport
addDefaultHandlerExceptionHandlers, addDefaultHttpMessageConverters, annotationHandlerFactory, beanNameHandlerMapping, configureDefaultViewResolvers, createAnnotationExceptionHandler, createRequestMappingHandlerAdapter, createRequestMappingHandlerMapping, defaultServletHandlerMapping, extendExceptionHandlers, getAsyncSupportConfigurer, getCorsConfigurations, getDefaultMediaTypes, getInterceptors, getMessageCodesResolver, getMessageConverters, getPathMatchConfigurer, getWebBindingInitializer, handlerExceptionHandler, handlerFunctionAdapter, initApplicationContext, initHandlerMapping, isPresent, mvcContentNegotiationManager, mvcConversionService, mvcResourceUrlProvider, mvcUriComponentsContributor, mvcValidator, mvcViewResolver, parameterResolvingRegistry, requestMappingHandlerAdapter, requestMappingHandlerMapping, resourceHandlerMapping, returnValueHandlerManager, routerFunctionMapping, viewControllerHandlerMapping, viewReturnValueHandler, webAsyncManagerFactory, webLocaleResolver从类继承的方法 cn.taketoday.context.support.ApplicationObjectSupport
getApplicationContext, getMessageSourceAccessor, initApplicationContext, isContextRequired, obtainApplicationContext, requiredContextClass, setApplicationContext, unwrapContext, unwrapFactory
-
字段详细资料
-
configurers
-
-
构造器详细资料
-
DelegatingWebMvcConfiguration
-
-
方法详细资料
-
configurePathMatch
从类复制的说明:WebMvcConfigurationSupportOverride this method to configure path matching options.- 覆盖:
configurePathMatch在类中WebMvcConfigurationSupport- 另请参阅:
-
configureContentNegotiation
从类复制的说明:WebMvcConfigurationSupportOverride this method to configure content negotiation. -
configureAsyncSupport
从类复制的说明:WebMvcConfigurationSupportOverride this method to configure asynchronous request processing options. -
configureDefaultServletHandling
从类复制的说明:WebMvcConfigurationSupportOverride this method to configure "default" Servlet handling. -
addFormatters
protected void addFormatters(cn.taketoday.format.FormatterRegistry registry) 从类复制的说明:WebMvcConfigurationSupportOverride this method to add customConverterand/orFormatterdelegates to the commonFormattingConversionService. -
addInterceptors
从类复制的说明:WebMvcConfigurationSupportOverride this method to add Framework MVC interceptors for pre- and post-processing of controller invocation.- 覆盖:
addInterceptors在类中WebMvcConfigurationSupport- 另请参阅:
-
addResourceHandlers
从类复制的说明:WebMvcConfigurationSupportOverride this method to add resource handlers for serving static resources. -
addCorsMappings
从类复制的说明:WebMvcConfigurationSupportOverride this method to configure cross origin requests processing.- 覆盖:
addCorsMappings在类中WebMvcConfigurationSupport- 另请参阅:
-
addViewControllers
从类复制的说明:WebMvcConfigurationSupportOverride this method to add view controllers. -
configureViewResolvers
从类复制的说明:WebMvcConfigurationSupportOverride this method to configure view resolution. -
modifyParameterResolvingRegistry
-
modifyReturnValueHandlerManager
-
configureMessageConverters
从类复制的说明:WebMvcConfigurationSupportOverride this method to add customHttpMessageConvertersto use with theParameterResolvingStrategyand theReturnValueHandlerManager.Adding converters to the list turns off the default converters that would otherwise be registered by default. Also see
WebMvcConfigurationSupport.addDefaultHttpMessageConverters(java.util.List<cn.taketoday.http.converter.HttpMessageConverter<?>>)for adding default message converters.- 覆盖:
configureMessageConverters在类中WebMvcConfigurationSupport- 参数:
converters- a list to add message converters to (initially an empty list)
-
extendMessageConverters
从类复制的说明:WebMvcConfigurationSupportOverride this method to extend or modify the list of converters after it has been configured. This may be useful for example to allow default converters to be registered and then insert a custom converter through this method.- 覆盖:
extendMessageConverters在类中WebMvcConfigurationSupport- 参数:
converters- the list of configured converters to extend
-
getValidator
@Nullable protected cn.taketoday.validation.Validator getValidator()从类复制的说明:WebMvcConfigurationSupportOverride this method to provide a customValidator. -
configureExceptionHandlers
从类复制的说明:WebMvcConfigurationSupportOverride this method to configure the list ofHandlerExceptionHandlersto use.Adding resolvers to the list turns off the default resolvers that would otherwise be registered by default. Also see
WebMvcConfigurationSupport.addDefaultHandlerExceptionHandlers(java.util.List<cn.taketoday.web.HandlerExceptionHandler>, cn.taketoday.web.handler.method.AnnotationHandlerFactory)that can be used to add the default exception resolvers.- 覆盖:
configureExceptionHandlers在类中WebMvcConfigurationSupport- 参数:
handlers- a list to add exception handlers to (initially an empty list)
-