Package pl.matsuo.core.web.mvc
Class MvcConfig
java.lang.Object
org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport
pl.matsuo.core.web.mvc.MvcConfig
- All Implemented Interfaces:
EventListener,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware,org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>,org.springframework.web.context.ServletContextAware
@WebConfiguration
@Configuration
@Import({BootstrapRenderer.class,FacadeBuilderHandlerMethodArgumentResolver.class})
public class MvcConfig
extends org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport
implements org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigureMessageConverters(List<org.springframework.http.converter.HttpMessageConverter<?>> converters) org.springframework.http.converter.json.MappingJackson2HttpMessageConverterorg.springframework.web.multipart.commons.CommonsMultipartResolvercom.fasterxml.jackson.databind.ObjectMapperobjectMapper(org.springframework.http.converter.json.MappingJackson2HttpMessageConverter converter) voidonApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event) Methods inherited from class org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport
addArgumentResolvers, addCorsMappings, addDefaultHandlerExceptionResolvers, addDefaultHttpMessageConverters, addFormatters, addInterceptors, addResourceHandlers, addReturnValueHandlers, addViewControllers, beanNameHandlerMapping, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configurePathMatch, configureViewResolvers, createExceptionHandlerExceptionResolver, createRequestMappingHandlerAdapter, createRequestMappingHandlerMapping, defaultServletHandlerMapping, extendHandlerExceptionResolvers, extendMessageConverters, flashMapManager, getApplicationContext, getArgumentResolvers, getAsyncSupportConfigurer, getConfigurableWebBindingInitializer, getCorsConfigurations, getDefaultMediaTypes, getInterceptors, getMessageCodesResolver, getMessageConverters, getPathMatchConfigurer, getReturnValueHandlers, getServletContext, getValidator, handlerExceptionResolver, handlerFunctionAdapter, httpRequestHandlerAdapter, localeResolver, mvcContentNegotiationManager, mvcConversionService, mvcHandlerMappingIntrospector, mvcPathMatcher, mvcPatternParser, mvcResourceUrlProvider, mvcUriComponentsContributor, mvcUrlPathHelper, mvcValidator, mvcViewResolver, requestMappingHandlerAdapter, requestMappingHandlerMapping, resourceHandlerMapping, routerFunctionMapping, setApplicationContext, setServletContext, simpleControllerHandlerAdapter, themeResolver, viewControllerHandlerMapping, viewNameTranslator
-
Constructor Details
-
MvcConfig
public MvcConfig()
-
-
Method Details
-
onApplicationEvent
public void onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event) - Specified by:
onApplicationEventin interfaceorg.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
-
configureMessageConverters
public void configureMessageConverters(List<org.springframework.http.converter.HttpMessageConverter<?>> converters) - Overrides:
configureMessageConvertersin classorg.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport
-
objectMapper
@Bean public com.fasterxml.jackson.databind.ObjectMapper objectMapper(org.springframework.http.converter.json.MappingJackson2HttpMessageConverter converter) -
converter
@Bean public org.springframework.http.converter.json.MappingJackson2HttpMessageConverter converter() -
multipartResolver
@Bean public org.springframework.web.multipart.commons.CommonsMultipartResolver multipartResolver()
-