接口 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 customExceptionHandlerExceptionResolver
that should be used and processed by the MVC configuration.default RequestMappingHandlerAdapter
Return the customRequestMappingHandlerAdapter
that should be used and processed by the MVC configuration.default RequestMappingHandlerMapping
Return the customRequestMappingHandlerMapping
that should be used and processed by the MVC configuration.
-
方法详细资料
-
getRequestMappingHandlerMapping
Return the customRequestMappingHandlerMapping
that should be used and processed by the MVC configuration.- 返回:
- the custom
RequestMappingHandlerMapping
instance
-
getRequestMappingHandlerAdapter
Return the customRequestMappingHandlerAdapter
that should be used and processed by the MVC configuration.- 返回:
- the custom
RequestMappingHandlerAdapter
instance
-
getExceptionHandlerExceptionResolver
Return the customExceptionHandlerExceptionResolver
that should be used and processed by the MVC configuration.- 返回:
- the custom
ExceptionHandlerExceptionResolver
instance
-