48.14. 支持的 Datatypes
DefaultFormatFactory 通过基于提供的 FormattingOptions 返回接口 FormatFactoryInterface 实例来格式化以下数据类型:
- BigDecimal
- BigInteger
- 布尔值
- Byte
- 字符
- Date
- 双
- 枚举
- 浮点值
- 整数
- LocalDate (自 2.18.0 起运行 8)
- LocalDateTime (java 8, since 2.18.0)
- localtime (java 8 since 2.18.0)
- Long
- 短
- 字符串
可以通过在使用的 registry 中提供 FactoryRegistry 实例(如 spring 或 JNDI)来覆盖 DefaultFormatFactory。