public class HerodotusUserDeserializer extends com.fasterxml.jackson.databind.JsonDeserializer<HerodotusUser>
Description: 自定义 UserDetails 序列化
| 构造器和说明 |
|---|
HerodotusUserDeserializer() |
| 限定符和类型 | 方法和说明 |
|---|---|
HerodotusUser |
deserialize(com.fasterxml.jackson.core.JsonParser jp,
com.fasterxml.jackson.databind.DeserializationContext ctxt)
This method will create
User object. |
deserialize, deserializeWithType, deserializeWithType, findBackReference, getAbsentValue, getDelegatee, getEmptyAccessPattern, getEmptyValue, getEmptyValue, getKnownPropertyNames, getNullAccessPattern, getNullValue, getNullValue, getObjectIdReader, handledType, isCachable, logicalType, replaceDelegatee, supportsUpdate, unwrappingDeserializerpublic HerodotusUser deserialize(com.fasterxml.jackson.core.JsonParser jp, com.fasterxml.jackson.databind.DeserializationContext ctxt) throws IOException, com.fasterxml.jackson.core.JsonProcessingException
User object. It will ensure successful object
creation even if password key is null in serialized json, because credentials may
be removed from the User by invoking User.eraseCredentials(). In
that case there won't be any password key in serialized json.deserialize 在类中 com.fasterxml.jackson.databind.JsonDeserializer<HerodotusUser>jp - the JsonParserctxt - the DeserializationContextIOException - if a exception during IO occurscom.fasterxml.jackson.core.JsonProcessingException - if an error during JSON processing occursCopyright © 2023 Dromara. All rights reserved.