You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: org.springframework.web/src/main/java/org/springframework/http/converter/json/MappingJacksonHttpMessageConverter.java
+40-21Lines changed: 40 additions & 21 deletions
Original file line number
Diff line number
Diff line change
@@ -20,9 +20,14 @@
20
20
importjava.nio.charset.Charset;
21
21
importjava.util.List;
22
22
23
+
importjavax.xml.bind.Marshaller;
24
+
importjavax.xml.bind.PropertyException;
25
+
23
26
importorg.codehaus.jackson.JsonEncoding;
24
27
importorg.codehaus.jackson.JsonGenerator;
28
+
importorg.codehaus.jackson.type.JavaType;
25
29
importorg.codehaus.jackson.map.ObjectMapper;
30
+
importorg.codehaus.jackson.map.type.TypeFactory;
26
31
27
32
importorg.springframework.http.HttpInputMessage;
28
33
importorg.springframework.http.HttpOutputMessage;
@@ -39,24 +44,24 @@
39
44
* <p>This converter can be used to bind to typed beans, or untyped {@link java.util.HashMap HashMap} instances.
40
45
*
41
46
* <p>By default, this converter supports {@code application/json}. This can be overridden by setting the {@link
42
-
* #setSupportedMediaTypes(List) supportedMediaTypes} property, and overriding the {@link #getContentType(Object)}
Copy file name to clipboardExpand all lines: org.springframework.web/src/test/java/org/springframework/http/converter/json/MappingJacksonHttpMessageConverterTests.java
0 commit comments