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: docs/manual/src/docs/asciidoc/_includes/servlet/integrations/jackson.adoc
+12-2Lines changed: 12 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,10 @@
1
1
[[jackson]]
2
2
== Jackson Support
3
3
4
-
Spring Security has added Jackson Support for persisting Spring Security related classes.
4
+
Spring Security provides Jackson support for persisting Spring Security related classes.
5
5
This can improve the performance of serializing Spring Security related classes when working with distributed sessions (i.e. session replication, Spring Session, etc).
6
6
7
-
To use it, register the `SecurityJackson2Modules.getModules(ClassLoader)` as https://wiki.fasterxml.com/JacksonFeatureModules[Jackson Modules].
7
+
To use it, register the `SecurityJackson2Modules.getModules(ClassLoader)` with `ObjectMapper` (https://github.com/FasterXML/jackson-databind[jackson-databind]):
8
8
9
9
[source,java]
10
10
----
@@ -18,3 +18,13 @@ SecurityContext context = new SecurityContextImpl();
18
18
// ...
19
19
String json = mapper.writeValueAsString(context);
20
20
----
21
+
22
+
[NOTE]
23
+
====
24
+
The following Spring Security modules provide Jackson support:
0 commit comments