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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    configureMessageConverters(List<org.springframework.http.converter.HttpMessageConverter<?>> converters)
     
    org.springframework.http.converter.json.MappingJackson2HttpMessageConverter
     
    org.springframework.web.multipart.commons.CommonsMultipartResolver
     
    com.fasterxml.jackson.databind.ObjectMapper
    objectMapper(org.springframework.http.converter.json.MappingJackson2HttpMessageConverter converter)
     
    void
    onApplicationEvent(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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MvcConfig

      public MvcConfig()
  • Method Details

    • onApplicationEvent

      public void onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event)
      Specified by:
      onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
    • configureMessageConverters

      public void configureMessageConverters(List<org.springframework.http.converter.HttpMessageConverter<?>> converters)
      Overrides:
      configureMessageConverters in class org.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()