From f59e4ecbbcc40c7949c27a5fccac749df32bd576 Mon Sep 17 00:00:00 2001 From: hujl Date: Thu, 13 Jan 2022 17:21:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3:12=E7=82=B9=E4=B8=8D?= =?UTF-8?q?=E4=B8=BA00=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/ann/demo/utils/XMLUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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());