mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix #IAY5Z7
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user