java.io.NotSerializableException错误解决方法 解决方法:使对象序列化,在Java bean类中implements Serializable ,并生成默认的serialVersionUID。