Serial version id mismatch issue between server and client class

This question already has an answer here:

  • What is a serialVersionUID and why should I use it? 21 answers

  • Try the following code

    private static final long serialVersionUID = 20150901L;
    

    if you don't make it private and static and final it will be ignored.

    链接地址: http://www.djcxy.com/p/23844.html

    上一篇: SerialVersionId在序列化中的重要性?

    下一篇: 服务器和客户端类之间的串行版本ID不匹配问题