From 9f77333761c8c85424c97e718355d74b949d6dd2 Mon Sep 17 00:00:00 2001 From: wzqgit <568275241@qq.com> Date: Wed, 29 Sep 2021 12:08:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=A7=A3=E6=9E=90xml?= =?UTF-8?q?=E6=97=B6=E6=97=B6=E9=97=B4=E6=A0=BC=E5=BC=8F=E8=BD=AC=E6=8D=A2?= =?UTF-8?q?=E9=97=AE=E9=A2=98=209/29=20wzq?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/ann/demo/utils/XMLUtils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/ann/demo/utils/XMLUtils.java b/src/main/java/com/ann/demo/utils/XMLUtils.java index e4a01b0..e8b9112 100644 --- a/src/main/java/com/ann/demo/utils/XMLUtils.java +++ b/src/main/java/com/ann/demo/utils/XMLUtils.java @@ -134,8 +134,8 @@ public class XMLUtils { MessageDto messageDto = null; Document doc = null; Object obj = null; - SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyyMMddhhmmss"); - SimpleDateFormat simpleDateFormat1 = new SimpleDateFormat("yyyy/MM/dd hh:mm:ss"); + SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyyMMddHHmmss"); + SimpleDateFormat simpleDateFormat1 = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss"); xmlStr = xmlStr.replaceAll("&", "&"); SAXReader saxReader = new SAXReader(); saxReader.setXMLFilter(new XMLFilterImpl() {