インターフェースの使用
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 のメソッド修飾子と型メソッド説明void
FormatterRegistrar.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 のクラス修飾子と型クラス説明class
FormattingConversionService
の特殊化。ほとんどのアプリケーションに適したコンバーターとフォーマッターでデフォルトで構成されます。class
FormatterRegistry
として構成されるように設計されたConversionService
実装。型 FormatterRegistry のパラメーターを持つ org.springframework.format.support のメソッド修飾子と型メソッド説明static void
DefaultFormattingConversionService.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 void
DelegatingWebFluxConfiguration.addFormatters
(FormatterRegistry registry) protected void
WebFluxConfigurationSupport.addFormatters
(FormatterRegistry registry) default void
WebFluxConfigurer.addFormatters
(FormatterRegistry registry) アノテーション付きコントローラーメソッドの引数の型変換とフォーマットを実行するためのカスタムConverters
およびFormatters
を追加します。void
WebFluxConfigurerComposite.addFormatters
(FormatterRegistry registry) org.springframework.web.servlet.config.annotation 内の FormatterRegistry 使用
型 FormatterRegistry のパラメーターを持つ org.springframework.web.servlet.config.annotation のメソッド修飾子と型メソッド説明protected void
DelegatingWebMvcConfiguration.addFormatters
(FormatterRegistry registry) protected void
WebMvcConfigurationSupport.addFormatters
(FormatterRegistry registry) default void
WebMvcConfigurer.addFormatters
(FormatterRegistry registry) デフォルトで登録されているものに加えて、Converters
およびFormatters
を追加します。