Browse Source

DEC-17331 fix: 裁掉spring对jackson的部分支持

release/10.0
charile_Lu 4 years ago
parent
commit
e65bab63ea
  1. 7
      fine-spring/readme.md
  2. 10
      fine-spring/src/main/java/com/fr/third/springframework/http/converter/support/AllEncompassingFormHttpMessageConverter.java

7
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 定制内容处均有"// 定制"注释
1 spring版本4.3.29.RELEASE<br>
2 fine-spring内容见https://kms.fineres.com/pages/viewpage.action?pageId=152798513<br>
3 定制内容处均有"// 定制"注释<br>
4 去除对jackson的ObjectMapper的支持:DEC-17331<br>

10
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",

Loading…
Cancel
Save