クラスの使用
org.springframework.format.support.FormattingConversionService
FormattingConversionService を使用するパッケージ
パッケージ
説明
フォーマットパッケージのクラスをサポートし、一般的な実装とアダプターを提供します。
ビルトイン
MockMvcBuilder 実装が含まれています。Spring WebFlux 構成インフラストラクチャ。
Spring MVC のアノテーションベースのセットアップ。
org.springframework.format.support 内の FormattingConversionService 使用
FormattingConversionService 型の型引数を持つインターフェースを実装する org.springframework.format.support のクラス修飾子と型クラス説明class数値、日付、時刻などの一般的な型用のコンバーターとフォーマッタが構成されたFormattingConversionServiceへの便利なアクセスを提供するファクトリ。型 FormattingConversionService の引数を持つ型を返す org.springframework.format.support のメソッド修飾子と型メソッド説明ClassSE<? extends FormattingConversionService> FormattingConversionServiceFactoryBean.getObjectType()org.springframework.test.web.servlet.client 内の FormattingConversionService 使用
型 FormattingConversionService のパラメーターを持つ org.springframework.test.web.servlet.client のメソッド修飾子と型メソッド説明MockMvcWebTestClient.ControllerSpec.conversionService(FormattingConversionService conversionService) 変換サービスを提供します。org.springframework.test.web.servlet.setup 内の FormattingConversionService 使用
型 FormattingConversionService のパラメーターを持つ org.springframework.test.web.servlet.setup のメソッド修飾子と型メソッド説明StandaloneMockMvcBuilder.setConversionService(FormattingConversionService conversionService) カスタムフォーマッタとコンバーターを備えた変換サービスを提供します。org.springframework.web.reactive.config 内の FormattingConversionService 使用
修飾子と型メソッド説明WebFluxConfigurationSupport.webFluxConversionService()アノテーション付きコントローラーで使用するためにFormattingConversionServiceを返します。型 FormattingConversionService のパラメーターを持つ org.springframework.web.reactive.config のメソッド修飾子と型メソッド説明protected ConfigurableWebBindingInitializerWebFluxConfigurationSupport.getConfigurableWebBindingInitializer(FormattingConversionService webFluxConversionService, Validator webFluxValidator) すべてのWebDataBinderインスタンスの初期化に使用するConfigurableWebBindingInitializerを返します。WebFluxConfigurationSupport.requestMappingHandlerAdapter(ReactiveAdapterRegistry reactiveAdapterRegistry, ServerCodecConfigurer serverCodecConfigurer, FormattingConversionService conversionService, RequestedContentTypeResolver contentTypeResolver, Validator validator) org.springframework.web.servlet.config.annotation 内の FormattingConversionService 使用
修飾子と型メソッド説明WebMvcConfigurationSupport.mvcConversionService()アノテーション付きコントローラーで使用するためにFormattingConversionServiceを返します。型 FormattingConversionService のパラメーターを持つ org.springframework.web.servlet.config.annotation のメソッド修飾子と型メソッド説明WebMvcConfigurationSupport.beanNameHandlerMapping(FormattingConversionService conversionService, ResourceUrlProvider resourceUrlProvider) URL パスをコントローラー Bean 名にマップするには、2 で順序付けされたBeanNameUrlHandlerMappingを返します。protected ConfigurableWebBindingInitializerWebMvcConfigurationSupport.getConfigurableWebBindingInitializer(FormattingConversionService mvcConversionService, Validator mvcValidator) すべてのWebDataBinderインスタンスの初期化に使用するConfigurableWebBindingInitializerを返します。protected final ObjectSE[]WebMvcConfigurationSupport.getInterceptors(FormattingConversionService mvcConversionService, ResourceUrlProvider mvcResourceUrlProvider) HandlerMappingインスタンスの構成に使用される共有ハンドラーインターセプターへのアクセスを提供します。WebMvcConfigurationSupport.mvcUriComponentsContributor(FormattingConversionService conversionService, RequestMappingHandlerAdapter requestMappingHandlerAdapter) MvcUriComponentsBuilderで使用するためにCompositeUriComponentsContributorのインスタンスを返します。WebMvcConfigurationSupport.requestMappingHandlerAdapter(ContentNegotiationManager contentNegotiationManager, FormattingConversionService conversionService, Validator validator) アノテーション付きコントローラーメソッドを介してリクエストを処理するためのRequestMappingHandlerAdapterを返します。WebMvcConfigurationSupport.requestMappingHandlerMapping(ContentNegotiationManager contentNegotiationManager, @Nullable ApiVersionStrategy apiVersionStrategy, FormattingConversionService conversionService, ResourceUrlProvider resourceUrlProvider) リクエストをアノテーション付きコントローラーにマッピングするために、0 で順序付けされたRequestMappingHandlerMappingを返します。WebMvcConfigurationSupport.resourceHandlerMapping(ContentNegotiationManager contentNegotiationManager, FormattingConversionService conversionService, ResourceUrlProvider resourceUrlProvider) リソースハンドラーがマップされた Integer.MAX_VALUE-1 で順序付けられたハンドラーマッピングを返します。WebMvcConfigurationSupport.routerFunctionMapping(FormattingConversionService conversionService, ResourceUrlProvider resourceUrlProvider, @Nullable ApiVersionStrategy versionStrategy) ルーター関数をマップするために、-1 で順序付けされたRouterFunctionMappingを返します。WebMvcConfigurationSupport.viewControllerHandlerMapping(FormattingConversionService conversionService, ResourceUrlProvider resourceUrlProvider) URL パスをビュー名に直接マップするには、1 で順序付けられたハンドラーマッピングを返します。