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: spring-batch-core/src/main/java/org/springframework/batch/core/repository/dao/Jackson2ExecutionContextStringSerializer.java
+31-11
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,7 @@
24
24
importjava.util.Date;
25
25
importjava.util.HashMap;
26
26
importjava.util.HashSet;
27
+
importjava.util.LinkedHashSet;
27
28
importjava.util.Map;
28
29
importjava.util.Set;
29
30
@@ -60,8 +61,9 @@
60
61
*
61
62
* By default, this implementation trusts a limited set of classes to be
62
63
* deserialized from the execution context. If a class is not trusted by default
63
-
* and is safe to deserialize, you can provide an explicit mapping using Jackson
64
-
* annotations, as shown in the following example:
64
+
* and is safe to deserialize, you can add it to the base set of trusted classes
65
+
* at {@link Jackson2ExecutionContextStringSerializer construction time} or provide
66
+
* an explicit mapping using Jackson annotations, as shown in the following example:
65
67
*
66
68
* <pre class="code">
67
69
* @JsonTypeInfo(use = JsonTypeInfo.Id.CLASS)
@@ -103,12 +105,19 @@ public class Jackson2ExecutionContextStringSerializer implements ExecutionContex
Copy file name to clipboardExpand all lines: spring-batch-core/src/test/java/org/springframework/batch/core/repository/dao/Jackson2ExecutionContextStringSerializerTests.java
0 commit comments