更新时间:2023-02-18 22:44:35
这意味着您已在会话中放置了一个不可序列化的对象,并且您已在服务器停止时启用了会话持久性。
This means you have put an object in the session that is not serializable, and you have enabled session persistence on server stop.
您有多种选择:
Serializable
sessionDestroyed(..)
的会话中删除 HttpSessionListener
transient
Serializable
sessionDestroyed(..)
of a HttpSessionListener
transient
你还应该清理tomcat的work目录,这样就不会有先前的序列化会话已经恢复。
You should also clean the "work" directory of tomcat so that no previous serialized session is restored.