クラスの使用
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping
パッケージ
説明
ビルトイン
MockMvcBuilder
実装が含まれています。Spring MVC のアノテーションベースのセットアップ。
org.springframework.test.web.servlet.client 内の RequestMappingHandlerMapping 使用
修飾子と型メソッド説明MockMvcWebTestClient.ControllerSpec.customHandlerMapping
(SupplierSE<RequestMappingHandlerMapping> factory) カスタムRequestMappingHandlerMapping
のファクトリを構成します。org.springframework.test.web.servlet.setup 内の RequestMappingHandlerMapping 使用
修飾子と型メソッド説明StandaloneMockMvcBuilder.setCustomHandlerMapping
(SupplierSE<RequestMappingHandlerMapping> factory) ファクトリを構成して、カスタムRequestMappingHandlerMapping
を作成します。org.springframework.web.servlet.config.annotation 内の RequestMappingHandlerMapping 使用
修飾子と型メソッド説明protected RequestMappingHandlerMapping
WebMvcConfigurationSupport.createRequestMappingHandlerMapping()
RequestMappingHandlerMapping
のカスタムサブクラスにプラグインするための protected メソッド。WebMvcConfigurationSupport.requestMappingHandlerMapping
(ContentNegotiationManager contentNegotiationManager, FormattingConversionService conversionService, ResourceUrlProvider resourceUrlProvider) リクエストをアノテーション付きコントローラーにマッピングするために、0 で順序付けされたRequestMappingHandlerMapping
を返します。