接口 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.
- 从以下版本开始:
- 2.0.0
- 作者:
- Brian Clozel
- 另请参阅:
-
方法概要
修饰符和类型方法说明Return 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.
-
方法详细资料
-
getRequestMappingHandlerMapping
Return the customRequestMappingHandlerMappingthat should be used and processed by the MVC configuration.- 返回:
- the custom
RequestMappingHandlerMappinginstance
-
getRequestMappingHandlerAdapter
Return the customRequestMappingHandlerAdapterthat should be used and processed by the MVC configuration.- 返回:
- the custom
RequestMappingHandlerAdapterinstance
-
getExceptionHandlerExceptionResolver
Return the customExceptionHandlerExceptionResolverthat should be used and processed by the MVC configuration.- 返回:
- the custom
ExceptionHandlerExceptionResolverinstance
-