类的使用
org.springframework.format.annotation.DateTimeFormat
使用DateTimeFormat的程序包 程序包 说明 org.springframework.format.datetime Formatters forjava.util.Dateproperties.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-310java.timepackage 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 DateTimeFormatterJodaDateTimeFormatAnnotationFormatterFactory. getFormatter(DateTimeFormat annotation, Class<?> fieldType)Factory method used to create aDateTimeFormatter.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 DateTimeFormatterJsr310DateTimeFormatAnnotationFormatterFactory. getFormatter(DateTimeFormat annotation, Class<?> fieldType)Factory method used to create aDateTimeFormatter.Parser<?>Jsr310DateTimeFormatAnnotationFormatterFactory. getParser(DateTimeFormat annotation, Class<?> fieldType)Printer<?>Jsr310DateTimeFormatAnnotationFormatterFactory. getPrinter(DateTimeFormat annotation, Class<?> fieldType)