Package com.flowable.spring.boot
Class DispatcherServletConfiguration
java.lang.Object
org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport
com.flowable.spring.boot.DispatcherServletConfiguration
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware,org.springframework.web.context.ServletContextAware
@Configuration(proxyBeanMethods=false)
@ConditionalOnClass(org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport.class)
@EnableAsync
public class DispatcherServletConfiguration
extends org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport
Base dispatcher configuration that can be used to configure context for the REST API.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringBASE_EXCEPTION_HANDLER_ADVICE_BEAN_NAMEstatic intBASE_EXCEPTION_HANDLER_ADVICE_ORDERstatic java.lang.StringCORE_EXCEPTION_HANDLER_ADVICE_BEAN_NAMEstatic intCORE_EXCEPTION_HANDLER_ADVICE_ORDERprotected com.fasterxml.jackson.databind.ObjectMapperobjectMapper -
Constructor Summary
Constructors Constructor Description DispatcherServletConfiguration() -
Method Summary
Modifier and Type Method Description protected voidaddFlowableDefaultHttpMessageConverters(java.util.List<org.springframework.http.converter.HttpMessageConverter<?>> messageConverters)protected voidaddInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry)org.flowable.common.rest.exception.BaseExceptionHandlerAdvicebaseExceptionHandlerAdvice()protected voidconfigureContentNegotiation(org.springframework.web.servlet.config.annotation.ContentNegotiationConfigurer configurer)voidconfigureMessageConverters(java.util.List<org.springframework.http.converter.HttpMessageConverter<?>> converters)CoreExceptionHandlerAdvicecoreExceptionHandlerAdvice()protected org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMappingcreateRequestMappingHandlerMapping()org.springframework.web.servlet.i18n.SessionLocaleResolverlocaleResolver()org.springframework.web.multipart.MultipartResolvermultipartResolver(org.springframework.beans.factory.ObjectProvider<org.springframework.boot.autoconfigure.web.servlet.MultipartProperties> multipartPropertiesObjectProvider)Methods inherited from class org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport
addArgumentResolvers, addCorsMappings, addDefaultHandlerExceptionResolvers, addDefaultHttpMessageConverters, addFormatters, addResourceHandlers, addReturnValueHandlers, addViewControllers, beanNameHandlerMapping, configureAsyncSupport, configureDefaultServletHandling, configureHandlerExceptionResolvers, configurePathMatch, configureViewResolvers, createExceptionHandlerExceptionResolver, createRequestMappingHandlerAdapter, defaultServletHandlerMapping, extendHandlerExceptionResolvers, extendMessageConverters, getApplicationContext, getArgumentResolvers, getConfigurableWebBindingInitializer, getCorsConfigurations, getDefaultMediaTypes, getInterceptors, getMessageCodesResolver, getMessageConverters, getPathMatchConfigurer, getReturnValueHandlers, getServletContext, getValidator, handlerExceptionResolver, handlerFunctionAdapter, httpRequestHandlerAdapter, mvcContentNegotiationManager, mvcConversionService, mvcHandlerMappingIntrospector, mvcPathMatcher, mvcResourceUrlProvider, mvcUriComponentsContributor, mvcUrlPathHelper, mvcValidator, mvcViewResolver, requestMappingHandlerAdapter, requestMappingHandlerMapping, resourceHandlerMapping, routerFunctionMapping, setApplicationContext, setServletContext, simpleControllerHandlerAdapter, viewControllerHandlerMapping
-
Field Details
-
CORE_EXCEPTION_HANDLER_ADVICE_ORDER
public static final int CORE_EXCEPTION_HANDLER_ADVICE_ORDER- See Also:
- Constant Field Values
-
BASE_EXCEPTION_HANDLER_ADVICE_ORDER
public static final int BASE_EXCEPTION_HANDLER_ADVICE_ORDER- See Also:
- Constant Field Values
-
CORE_EXCEPTION_HANDLER_ADVICE_BEAN_NAME
public static final java.lang.String CORE_EXCEPTION_HANDLER_ADVICE_BEAN_NAME- See Also:
- Constant Field Values
-
BASE_EXCEPTION_HANDLER_ADVICE_BEAN_NAME
public static final java.lang.String BASE_EXCEPTION_HANDLER_ADVICE_BEAN_NAME- See Also:
- Constant Field Values
-
objectMapper
@Autowired protected com.fasterxml.jackson.databind.ObjectMapper objectMapper
-
-
Constructor Details
-
DispatcherServletConfiguration
public DispatcherServletConfiguration()
-
-
Method Details
-
coreExceptionHandlerAdvice
@Bean("coreExceptionHandlerAdvice") @Order(0) @ConditionalOnMissingBean(name="coreExceptionHandlerAdvice") public CoreExceptionHandlerAdvice coreExceptionHandlerAdvice() -
baseExceptionHandlerAdvice
@Bean("baseExceptionHandlerAdvice") @Order(10) @ConditionalOnMissingBean(name="baseExceptionHandlerAdvice") public org.flowable.common.rest.exception.BaseExceptionHandlerAdvice baseExceptionHandlerAdvice() -
localeResolver
@Bean public org.springframework.web.servlet.i18n.SessionLocaleResolver localeResolver() -
addInterceptors
protected void addInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry)- Overrides:
addInterceptorsin classorg.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport
-
multipartResolver
@Bean public org.springframework.web.multipart.MultipartResolver multipartResolver(org.springframework.beans.factory.ObjectProvider<org.springframework.boot.autoconfigure.web.servlet.MultipartProperties> multipartPropertiesObjectProvider) -
createRequestMappingHandlerMapping
protected org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping createRequestMappingHandlerMapping()- Overrides:
createRequestMappingHandlerMappingin classorg.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport
-
configureMessageConverters
public void configureMessageConverters(java.util.List<org.springframework.http.converter.HttpMessageConverter<?>> converters)- Overrides:
configureMessageConvertersin classorg.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport
-
addFlowableDefaultHttpMessageConverters
protected void addFlowableDefaultHttpMessageConverters(java.util.List<org.springframework.http.converter.HttpMessageConverter<?>> messageConverters) -
configureContentNegotiation
protected void configureContentNegotiation(org.springframework.web.servlet.config.annotation.ContentNegotiationConfigurer configurer)- Overrides:
configureContentNegotiationin classorg.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport
-