Interface WebMvcRegistrations
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. To
participate in, and if desired, override that subsequent processing,
WebMvcConfigurer should be used.
A single instance of this component should be registered, otherwise making it impossible to choose from redundant MVC components.
- Since:
- 2.0.0
- Author:
- Brian Clozel
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturn the customExceptionHandlerExceptionResolverthat should be used and processed by the MVC configuration.default RequestMappingHandlerAdapterReturn the customRequestMappingHandlerAdapterthat should be used and processed by the MVC configuration.default RequestMappingHandlerMappingReturn the customRequestMappingHandlerMappingthat should be used and processed by the MVC configuration.
-
Method Details
-
getRequestMappingHandlerMapping
Return the customRequestMappingHandlerMappingthat should be used and processed by the MVC configuration.- Returns:
- the custom
RequestMappingHandlerMappinginstance
-
getRequestMappingHandlerAdapter
Return the customRequestMappingHandlerAdapterthat should be used and processed by the MVC configuration.- Returns:
- the custom
RequestMappingHandlerAdapterinstance
-
getExceptionHandlerExceptionResolver
Return the customExceptionHandlerExceptionResolverthat should be used and processed by the MVC configuration.- Returns:
- the custom
ExceptionHandlerExceptionResolverinstance
-