| 程序包 | 说明 |
|---|---|
| org.springframework.format.datetime |
Formatters for
java.util.Date properties. |
| org.springframework.format.datetime.joda |
Integration with Joda-Time for formatting Joda date and time types as well as standard JDK Date types.
|
| org.springframework.format.datetime.standard |
Integration with the JSR-310
java.time package in JDK 8. |
| org.springframework.format.number |
Formatters for
java.lang.Number properties. |
| org.springframework.format.number.money |
Integration with the JSR-354
javax.money package. |
| 限定符和类型 | 类和说明 |
|---|---|
class |
DateTimeFormatAnnotationFormatterFactory
Formats fields annotated with the
DateTimeFormat annotation using a DateFormatter. |
| 限定符和类型 | 类和说明 |
|---|---|
class |
JodaDateTimeFormatAnnotationFormatterFactory
Formats fields annotated with the
DateTimeFormat annotation using Joda-Time. |
| 限定符和类型 | 类和说明 |
|---|---|
class |
Jsr310DateTimeFormatAnnotationFormatterFactory
Formats fields annotated with the
DateTimeFormat annotation using the
JSR-310 java.time package in JDK 8. |
| 限定符和类型 | 类和说明 |
|---|---|
class |
NumberFormatAnnotationFormatterFactory
Formats fields annotated with the
NumberFormat annotation. |
| 限定符和类型 | 类和说明 |
|---|---|
class |
Jsr354NumberFormatAnnotationFormatterFactory
Formats
MonetaryAmount fields annotated
with Spring's common NumberFormat annotation. |