インターフェースの使用
org.springframework.format.FormatterRegistry
FormatterRegistry を使用するパッケージ
パッケージ
説明
UI での表示用にフィールドモデル値をフォーマットするフォーマッターを定義するための API。
java.util.Date プロパティのフォーマッタ。JDK 8 の JSR-310
java.time パッケージとの統合。 フォーマットパッケージのクラスをサポートし、一般的な実装とアダプターを提供します。
WebTestClient を介した Spring WebFlux サーバーエンドポイントのテストのサポート。Spring WebFlux 構成インフラストラクチャ。
Spring MVC のアノテーションベースのセットアップ。
org.springframework.format 内の FormatterRegistry 使用
型 FormatterRegistry のパラメーターを持つ org.springframework.format のメソッド修飾子と型メソッド説明voidFormatterRegistrar.registerFormatters(FormatterRegistry registry) FormatterRegistry SPI を介して FormattingConversionService にフォーマッターとコンバーターを登録します。org.springframework.format.datetime 内の FormatterRegistry 使用
型 FormatterRegistry のパラメーターを持つ org.springframework.format.datetime のメソッドorg.springframework.format.datetime.standard 内の FormatterRegistry 使用
型 FormatterRegistry のパラメーターを持つ org.springframework.format.datetime.standard のメソッドorg.springframework.format.support 内の FormatterRegistry 使用
FormatterRegistry を実装している org.springframework.format.support のクラス修飾子と型クラス説明classFormattingConversionServiceの特殊化。ほとんどのアプリケーションに適したコンバーターとフォーマッターでデフォルトで構成されます。classFormatterRegistryとして構成されるように設計されたConversionService実装。型 FormatterRegistry のパラメーターを持つ org.springframework.format.support のメソッド修飾子と型メソッド説明static voidDefaultFormattingConversionService.addDefaultFormatters(FormatterRegistry formatterRegistry) クラスパス上の対応する API の存在に応じて、数値フォーマッタ、JSR-354 Money & Currency フォーマッタ、JSR-310 Date-Time フォーマッタなど、ほとんどの環境に適したフォーマッタを追加します。org.springframework.test.web.reactive.server 内の FormatterRegistry 使用
型 FormatterRegistry の型引数を持つ org.springframework.test.web.reactive.server のメソッドパラメーター修飾子と型メソッド説明WebTestClient.ControllerSpec.formatters(ConsumerSE<FormatterRegistry> consumer) 型変換に使用するフォーマッターとコンバーターを登録します。org.springframework.web.reactive.config 内の FormatterRegistry 使用
型 FormatterRegistry のパラメーターを持つ org.springframework.web.reactive.config のメソッド修飾子と型メソッド説明protected voidDelegatingWebFluxConfiguration.addFormatters(FormatterRegistry registry) protected voidWebFluxConfigurationSupport.addFormatters(FormatterRegistry registry) default voidWebFluxConfigurer.addFormatters(FormatterRegistry registry) アノテーション付きコントローラーメソッドの引数の型変換とフォーマットを実行するためのカスタムConvertersおよびFormattersを追加します。voidWebFluxConfigurerComposite.addFormatters(FormatterRegistry registry) org.springframework.web.servlet.config.annotation 内の FormatterRegistry 使用
型 FormatterRegistry のパラメーターを持つ org.springframework.web.servlet.config.annotation のメソッド修飾子と型メソッド説明protected voidDelegatingWebMvcConfiguration.addFormatters(FormatterRegistry registry) protected voidWebMvcConfigurationSupport.addFormatters(FormatterRegistry registry) default voidWebMvcConfigurer.addFormatters(FormatterRegistry registry) デフォルトで登録されているものに加えて、ConvertersおよびFormattersを追加します。