Interface WebMvcRegistrations

  • All Known Implementing Classes:
    WebMvcRegistrationsAdapter

    public interface WebMvcRegistrations
    Interface to register key components of the WebMvcConfigurationSupport in place of the default ones provided by Spring MVC.

    All custom instances are later processed by Boot and Spring MVC configurations. A single instance of this component should be registered, otherwise making it impossible to choose from redundant MVC components.

    Since:
    1.4.0
    See Also:
    WebMvcAutoConfiguration.EnableWebMvcConfiguration
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and TypeMethodDescription
      org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolvergetExceptionHandlerExceptionResolver()
      Return the custom ExceptionHandlerExceptionResolver that should be used and processed by the MVC configuration.
      org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdaptergetRequestMappingHandlerAdapter()
      Return the custom RequestMappingHandlerAdapter that should be used and processed by the MVC configuration.
      org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMappinggetRequestMappingHandlerMapping()
      Return the custom RequestMappingHandlerMapping that should be used and processed by the MVC configuration.
    • Method Detail

      • getRequestMappingHandlerMapping

        org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping getRequestMappingHandlerMapping()
        Return the custom RequestMappingHandlerMapping that should be used and processed by the MVC configuration.
        Returns:
        the custom RequestMappingHandlerMapping instance
      • getRequestMappingHandlerAdapter

        org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter getRequestMappingHandlerAdapter()
        Return the custom RequestMappingHandlerAdapter that should be used and processed by the MVC configuration.
        Returns:
        the custom RequestMappingHandlerAdapter instance
      • getExceptionHandlerExceptionResolver

        org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver getExceptionHandlerExceptionResolver()
        Return the custom ExceptionHandlerExceptionResolver that should be used and processed by the MVC configuration.
        Returns:
        the custom ExceptionHandlerExceptionResolver instance