标签:ref 分布式 tcl fast this replica bsp wiki ...
Spring Security has added Jackson Support for persisting Spring Security related classes. This can improve the performance of serializing Spring Security related classes when working with distributed sessions (i.e. session replication, Spring Session, etc).
JacksonJacksonModules.getModules(ClassLoader)
as Jackson Modules.ObjectMapper mapper = new ObjectMapper(); ClassLoader loader = getClass().getClassLoader(); List<Module> modules = SecurityJackson2Modules.getModules(loader); mapper.registerModules(modules); // ... use ObjectMapper as normally ... SecurityContext context = new SecurityContextImpl(); // ... String json = mapper.writeValueAsString(context);
Spring Security(三十四):10.4 Jackson Support
标签:ref 分布式 tcl fast this replica bsp wiki ...
原文地址:https://www.cnblogs.com/shuaiandjun/p/10142814.html