private static final long serialVersionUID = 1022481205507844610L;
The line of code you provided is declaring a static final long variable called serialVersionUID and assigning it a value of 1022481205507844610L.
The serialVersionUID is a unique identifier for a Serializable class. It is used during the deserialization process to verify that the sender and receiver of a serialized object have loaded classes for that object that are compatible with respect to serialization. If the serialVersionUID values don't match, then a InvalidClassException is thrown during deserialization
原文地址: https://www.cveoy.top/t/topic/iqJ7 著作权归作者所有。请勿转载和采集!