org.springframework.format.datetime.standard.YearMonthFormatter类的使用及代码示例

x33g5p2x  于2022-02-05 转载在 其他  
字(1.4k)|赞(0)|评价(0)|浏览(98)

本文整理了Java中org.springframework.format.datetime.standard.YearMonthFormatter类的一些代码示例,展示了YearMonthFormatter类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YearMonthFormatter类的具体详情如下:
包路径:org.springframework.format.datetime.standard.YearMonthFormatter
类名称:YearMonthFormatter

YearMonthFormatter介绍

[英]Formatter implementation for a JSR-310 YearMonth, following JSR-310's parsing rules for a YearMonth.
[中]JSR-310 YearMonth的格式化程序实现,遵循JSR-310 YearMonth的解析规则。

代码示例

代码示例来源:origin: spring-projects/spring-framework

registry.addFormatterForFieldType(Year.class, new YearFormatter());
registry.addFormatterForFieldType(Month.class, new MonthFormatter());
registry.addFormatterForFieldType(YearMonth.class, new YearMonthFormatter());
registry.addFormatterForFieldType(MonthDay.class, new MonthDayFormatter());

代码示例来源:origin: org.springframework/spring-context

registry.addFormatterForFieldType(Year.class, new YearFormatter());
registry.addFormatterForFieldType(Month.class, new MonthFormatter());
registry.addFormatterForFieldType(YearMonth.class, new YearMonthFormatter());
registry.addFormatterForFieldType(MonthDay.class, new MonthDayFormatter());

代码示例来源:origin: apache/servicemix-bundles

registry.addFormatterForFieldType(Year.class, new YearFormatter());
registry.addFormatterForFieldType(Month.class, new MonthFormatter());
registry.addFormatterForFieldType(YearMonth.class, new YearMonthFormatter());
registry.addFormatterForFieldType(MonthDay.class, new MonthDayFormatter());

相关文章

YearMonthFormatter类方法