## 类的使用
org.springframework.format.annotation.DateTimeFormat

- 使用DateTimeFormat的程序包
  程序包 | 说明
  --- | ---
  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.datetime中DateTimeFormat的使用

    参数类型为DateTimeFormat的org.springframework.format.datetime中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `protected Formatter<Date>` | DateTimeFormatAnnotationFormatterFactory.`getFormatter(DateTimeFormat annotation, Class<?> fieldType)`
    `Parser<?>` | DateTimeFormatAnnotationFormatterFactory.`getParser(DateTimeFormat annotation, Class<?> fieldType)`
    `Printer<?>` | DateTimeFormatAnnotationFormatterFactory.`getPrinter(DateTimeFormat annotation, Class<?> fieldType)`

  - ### org.springframework.format.datetime.joda中DateTimeFormat的使用

    参数类型为DateTimeFormat的org.springframework.format.datetime.joda中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `protected DateTimeFormatter` | JodaDateTimeFormatAnnotationFormatterFactory.`getFormatter(DateTimeFormat annotation, Class<?> fieldType)` Factory method used to create a `DateTimeFormatter`.
    `Parser<?>` | JodaDateTimeFormatAnnotationFormatterFactory.`getParser(DateTimeFormat annotation, Class<?> fieldType)`
    `Printer<?>` | JodaDateTimeFormatAnnotationFormatterFactory.`getPrinter(DateTimeFormat annotation, Class<?> fieldType)`

  - ### org.springframework.format.datetime.standard中DateTimeFormat的使用

    参数类型为DateTimeFormat的org.springframework.format.datetime.standard中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `protected DateTimeFormatter` | Jsr310DateTimeFormatAnnotationFormatterFactory.`getFormatter(DateTimeFormat annotation, Class<?> fieldType)` Factory method used to create a `DateTimeFormatter`.
    `Parser<?>` | Jsr310DateTimeFormatAnnotationFormatterFactory.`getParser(DateTimeFormat annotation, Class<?> fieldType)`
    `Printer<?>` | Jsr310DateTimeFormatAnnotationFormatterFactory.`getPrinter(DateTimeFormat annotation, Class<?> fieldType)`