インターフェースの使用
org.springframework.format.AnnotationFormatterFactory
パッケージ
説明
UI での表示用にフィールドモデル値をフォーマットするフォーマッターを定義するための API。
java.util.Date
プロパティのフォーマッタ。JDK 8 の JSR-310
java.time
パッケージとの統合。java.lang.Number
プロパティのフォーマッタ。JSR-354
javax.money
パッケージとの統合。 フォーマットパッケージのクラスをサポートし、一般的な実装とアダプターを提供します。
org.springframework.format 内の AnnotationFormatterFactory 使用
修飾子と型メソッド説明void
FormatterRegistry.addFormatterForFieldAnnotation
(AnnotationFormatterFactory<? extends AnnotationSE> annotationFormatterFactory) Formatter を追加して、特定のフォーマットアノテーションが付けられたフィールドをフォーマットします。org.springframework.format.datetime 内の AnnotationFormatterFactory 使用
org.springframework.format.datetime.standard 内の AnnotationFormatterFactory 使用
修飾子と型クラス説明class
JDK 8 の JSR-310java.time
パッケージを使用して、DateTimeFormat
アノテーションが付けられたフィールドをフォーマットします。org.springframework.format.number 内の AnnotationFormatterFactory 使用
org.springframework.format.number.money 内の AnnotationFormatterFactory 使用
org.springframework.format.support 内の AnnotationFormatterFactory 使用
修飾子と型メソッド説明void
FormattingConversionService.addFormatterForFieldAnnotation
(AnnotationFormatterFactory<? extends AnnotationSE> annotationFormatterFactory)