diff --git a/src/main/java/com/ann/demo/utils/XMLUtils.java b/src/main/java/com/ann/demo/utils/XMLUtils.java index d96356f..2a8a037 100644 --- a/src/main/java/com/ann/demo/utils/XMLUtils.java +++ b/src/main/java/com/ann/demo/utils/XMLUtils.java @@ -159,7 +159,7 @@ public class XMLUtils { value = node.getText(); } // 判断属性是否存在 - SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyyMMddhhmmss"); + SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyyMMddHHmmss"); String objField = existsField(obj.getClass(), key); if (objField != null) { PropertyDescriptor descriptor = new PropertyDescriptor(key, obj.getClass());