From 8e663e96128c6b802e837e7ce4614cf3b97c62a9 Mon Sep 17 00:00:00 2001 From: wxz Date: Tue, 6 Jul 2021 16:43:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86webmvc=E7=9A=84=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E6=9A=82=E6=97=B6=E6=94=B9=E5=9B=9E=E4=BF=9D=E7=95=99=E5=88=86?= =?UTF-8?q?=E9=92=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/epmet/commons/tools/security/config/WebMvcConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/epmet-commons/epmet-commons-tools/src/main/java/com/epmet/commons/tools/security/config/WebMvcConfig.java b/epmet-commons/epmet-commons-tools/src/main/java/com/epmet/commons/tools/security/config/WebMvcConfig.java index d1af449333..549530747b 100644 --- a/epmet-commons/epmet-commons-tools/src/main/java/com/epmet/commons/tools/security/config/WebMvcConfig.java +++ b/epmet-commons/epmet-commons-tools/src/main/java/com/epmet/commons/tools/security/config/WebMvcConfig.java @@ -66,7 +66,7 @@ public class WebMvcConfig implements WebMvcConfigurer { //日期格式转换 mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); - mapper.setDateFormat(new SimpleDateFormat(DateUtils.DATE_TIME_PATTERN)); + mapper.setDateFormat(new SimpleDateFormat(DateUtils.DATE_TIME_PATTERN_END_WITH_MINUTE)); mapper.setTimeZone(TimeZone.getTimeZone("GMT+8")); //Long类型转String类型