Interface WebMvcRegistrations
public interface WebMvcRegistrations
Interface to register key components of theWebMvcConfigurationSupportin 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:
- 2.0.0
- See Also:
WebMvcAutoConfiguration.EnableWebMvcConfiguration
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolvergetExceptionHandlerExceptionResolver()Return the customExceptionHandlerExceptionResolverthat should be used and processed by the MVC configuration.default org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdaptergetRequestMappingHandlerAdapter()Return the customRequestMappingHandlerAdapterthat should be used and processed by the MVC configuration.default org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMappinggetRequestMappingHandlerMapping()Return the customRequestMappingHandlerMappingthat should be used and processed by the MVC configuration.
Method Detail
getRequestMappingHandlerMapping
default org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping getRequestMappingHandlerMapping()
Return the customRequestMappingHandlerMappingthat should be used and processed by the MVC configuration.- Returns:
- the custom
RequestMappingHandlerMappinginstance
getRequestMappingHandlerAdapter
default org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter getRequestMappingHandlerAdapter()
Return the customRequestMappingHandlerAdapterthat should be used and processed by the MVC configuration.- Returns:
- the custom
RequestMappingHandlerAdapterinstance
getExceptionHandlerExceptionResolver
default org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver getExceptionHandlerExceptionResolver()
Return the customExceptionHandlerExceptionResolverthat should be used and processed by the MVC configuration.- Returns:
- the custom
ExceptionHandlerExceptionResolverinstance