mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
fix #IAY5Z7
This commit is contained in:
parent
dca5e5c0cb
commit
f06e769b76
@ -217,7 +217,13 @@ public class RegisterConverter extends ConverterWithRoot implements Serializable
|
||||
|
||||
// 日期时间
|
||||
converterMap.put(Calendar.class, new CalendarConverter());
|
||||
converterMap.put(XMLGregorianCalendar.class, new XMLGregorianCalendarConverter());
|
||||
//issue#IAY5Z7
|
||||
// 可能抛出Provider org.apache.xerces.jaxp.datatype.DatatypeFactoryImpl not found,此处忽略
|
||||
try{
|
||||
converterMap.put(XMLGregorianCalendar.class, new XMLGregorianCalendarConverter());
|
||||
}catch (final Exception ignore){
|
||||
// ignore
|
||||
}
|
||||
|
||||
// 日期时间 JDK8+(since 5.0.0)
|
||||
converterMap.put(TemporalAccessor.class, TemporalAccessorConverter.INSTANCE);
|
||||
|
Loading…
x
Reference in New Issue
Block a user