Answer the question
In order to leave comments, you need to log in
How to deserialize an object in Redisson Codec?
Writing to the database is implemented through Redisson. All of these are labeled as follows:
public class User implements Serializable {
private static final long serialVersionUID = -960024560523175889L;
@JsonProperty("1")
public String id;
@JsonProperty("2")
public long lastRequest = 0L;
@JsonProperty("3")
public String lastRequestDate = "";
// public long lastCookieMatching = 0L;
@JsonProperty("4")
public HashMap<String, Long> cookieMatchingTimes = new HashMap<>();
@JsonProperty("5")
private boolean needToSave = false;
@JsonProperty("6")
private HashMap<String, Integer> dailyActions = new HashMap<>();
@JsonTypeInfo(use = Id.MINIMAL_CLASS, include = JsonTypeInfo.As.PROPERTY, property = "type")
@JsonSubTypes.Type(value = User.class, name = ".User")
public class User implements Serializable {
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question