Warning about myeclips prompting the serializable class XXX does not declare a static final serialversionuid field of type long
This warning will appear when we use ipvs/myeclips. For example, this prompt is displayed after the corresponding class of the table is automatically generated when Hibernate is used. Why?
This is irrelevant to the JDK version.
That is why eclipse provides this prompt function for you.
If you click its warning icon twice, eclipse will automatically specify it.
If you don't like it, you can turn it off,
Windows-> preferences-> compiler-> error/warnings
-> Potential Programming Problems
Change the value of serializable class without serialversionuid to ignore.
In fact, if you have not considered compatibility issues, turn it off.
In fact, this function is good.
As long as the serializable interface is implemented for any category,
If serialversionuid is not added, eclipse will prompt you to warning,
This serialversionuid is compatible with the serializable type.
Consider, if your class serialized is saved to the hard drive today,
But then you changed the field of the category (increase, decrease, or rename ).
When you deserialize, exception will occur. This will cause incompatibility issues.
However, when the serialversionuid is the same, it will deserialize different fields with the default value of type.
This avoids incompatibility issues.
Since you talked about the memory problem, I don't think it's much worse.