Eclipse issues warnings when a serialVersionUID
is missing.
The serializable class Foo does not declare a static final serialVersionUID field of type long
What is serialVersionUID
and why is it important? Please show an example where missing serialVersionUID
will cause a problem.
转载于:https://stackoverflow.com/questions/285793/what-is-a-serialversionuid-and-why-should-i-use-it