Spring Security(三十四):10.4 Jackson Support
Posted 帅S俊
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Spring Security(三十四):10.4 Jackson Support相关的知识,希望对你有一定的参考价值。
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的主要内容,如果未能解决你的问题,请参考以下文章
Spring Security(三十七):Part IV. Web Application Security
企业分布式微服务云SpringCloud SpringBoot mybatis (三十四)关于集成 Spring Cache
Spring Security(三十一):9.6 Localization(本地化)
SpringBoot | 第三十四章:CXF构建WebService服务
日常Exception第三十四回:mybatis-plus插入insert时null值导致报错,ExpressionSyntaxException: Malformed OGNL expressi