From e65bab63eaf66be69444522e0bcda9632c9eaec8 Mon Sep 17 00:00:00 2001 From: charile_Lu Date: Tue, 9 Mar 2021 16:36:26 +0800 Subject: [PATCH] =?UTF-8?q?DEC-17331=20fix:=20=E8=A3=81=E6=8E=89spring?= =?UTF-8?q?=E5=AF=B9jackson=E7=9A=84=E9=83=A8=E5=88=86=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fine-spring/readme.md | 7 ++++--- .../AllEncompassingFormHttpMessageConverter.java | 10 +++++----- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/fine-spring/readme.md b/fine-spring/readme.md index e5f2c8a07..dfb6c1024 100644 --- a/fine-spring/readme.md +++ b/fine-spring/readme.md @@ -1,3 +1,4 @@ -1 spring版本4.3.29.RELEASE -2 fine-spring内容见https://kms.fineres.com/pages/viewpage.action?pageId=152798513 -3 定制内容处均有"// 定制"注释 \ No newline at end of file +1 spring版本4.3.29.RELEASE
+2 fine-spring内容见https://kms.fineres.com/pages/viewpage.action?pageId=152798513
+3 定制内容处均有"// 定制"注释
+4 去除对jackson的ObjectMapper的支持:DEC-17331
\ No newline at end of file diff --git a/fine-spring/src/main/java/com/fr/third/springframework/http/converter/support/AllEncompassingFormHttpMessageConverter.java b/fine-spring/src/main/java/com/fr/third/springframework/http/converter/support/AllEncompassingFormHttpMessageConverter.java index 74c59e59c..5b697681b 100644 --- a/fine-spring/src/main/java/com/fr/third/springframework/http/converter/support/AllEncompassingFormHttpMessageConverter.java +++ b/fine-spring/src/main/java/com/fr/third/springframework/http/converter/support/AllEncompassingFormHttpMessageConverter.java @@ -40,11 +40,11 @@ public class AllEncompassingFormHttpMessageConverter extends FormHttpMessageConv ClassUtils.isPresent("javax.xml.bind.Binder", AllEncompassingFormHttpMessageConverter.class.getClassLoader()); - private static final boolean jackson2Present = - ClassUtils.isPresent("com.fasterxml.jackson.databind.ObjectMapper", - AllEncompassingFormHttpMessageConverter.class.getClassLoader()) && - ClassUtils.isPresent("com.fasterxml.jackson.core.JsonGenerator", - AllEncompassingFormHttpMessageConverter.class.getClassLoader()); + private static final boolean jackson2Present = false; +// ClassUtils.isPresent("com.fasterxml.jackson.databind.ObjectMapper", +// AllEncompassingFormHttpMessageConverter.class.getClassLoader()) && +// ClassUtils.isPresent("com.fasterxml.jackson.core.JsonGenerator", +// AllEncompassingFormHttpMessageConverter.class.getClassLoader()); private static final boolean jackson2XmlPresent = ClassUtils.isPresent("com.fasterxml.jackson.dataformat.xml.XmlMapper",