Package | Description |
---|---|
org.springframework.test.web.servlet.client |
Support for testing Spring MVC applications via
WebTestClient
with MockMvc for server request
handling. |
org.springframework.test.web.servlet.setup |
Contains built-in
MockMvcBuilder implementations. |
org.springframework.web.servlet.config.annotation |
Annotation-based setup for Spring MVC.
|
Modifier and Type | Method and Description |
---|---|
MockMvcWebTestClient.ControllerSpec |
MockMvcWebTestClient.ControllerSpec.customHandlerMapping(Supplier<RequestMappingHandlerMapping> factory)
Configure factory for a custom
RequestMappingHandlerMapping . |
Modifier and Type | Method and Description |
---|---|
StandaloneMockMvcBuilder |
StandaloneMockMvcBuilder.setCustomHandlerMapping(Supplier<RequestMappingHandlerMapping> factory)
Configure factory to create a custom
RequestMappingHandlerMapping . |
Modifier and Type | Method and Description |
---|---|
protected RequestMappingHandlerMapping |
WebMvcConfigurationSupport.createRequestMappingHandlerMapping()
Protected method for plugging in a custom subclass of
RequestMappingHandlerMapping . |
RequestMappingHandlerMapping |
WebMvcConfigurationSupport.requestMappingHandlerMapping(ContentNegotiationManager contentNegotiationManager,
FormattingConversionService conversionService,
ResourceUrlProvider resourceUrlProvider)
Return a
RequestMappingHandlerMapping ordered at 0 for mapping
requests to annotated controllers. |