It controls how the user instance is stored in the session store (e.g. connect-redis ).
I am not an expert in JSP, but I assume that there is some kind of ISerializable interface that classes should implement, which would be a rough equivalent.
source
share