接口 WebMvcRegistrations
- public interface WebMvcRegistrations Interface to register key components of the- WebMvcConfigurationSupportin 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. - 从以下版本开始:
- 2.0.0
- 另请参阅:
- WebMvcAutoConfiguration.EnableWebMvcConfiguration
 
- 方法概要- 所有方法 实例方法 默认方法 - 修饰符和类型 - 方法 - 说明 - default org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver- getExceptionHandlerExceptionResolver()Return the custom- ExceptionHandlerExceptionResolverthat should be used and processed by the MVC configuration.- default org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter- getRequestMappingHandlerAdapter()Return the custom- RequestMappingHandlerAdapterthat should be used and processed by the MVC configuration.- default org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping- getRequestMappingHandlerMapping()Return the custom- RequestMappingHandlerMappingthat should be used and processed by the MVC configuration.
 
- 方法详细资料- getRequestMappingHandlerMapping- default org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping getRequestMappingHandlerMapping() Return the custom- RequestMappingHandlerMappingthat should be used and processed by the MVC configuration.- 返回:
- the custom RequestMappingHandlerMappinginstance
 
 - getRequestMappingHandlerAdapter- default org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter getRequestMappingHandlerAdapter() Return the custom- RequestMappingHandlerAdapterthat should be used and processed by the MVC configuration.- 返回:
- the custom RequestMappingHandlerAdapterinstance
 
 - getExceptionHandlerExceptionResolver- default org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver getExceptionHandlerExceptionResolver() Return the custom- ExceptionHandlerExceptionResolverthat should be used and processed by the MVC configuration.- 返回:
- the custom ExceptionHandlerExceptionResolverinstance