When shiro configures the rememberMe (remember me) function, an abnormal SerializationException is thrown

Problem:
When the shrio framework configures the "remember me" function, the console throws an exception org.apache.shiro.io.SerializationException

solve:

When shiro performs authentication, the entity class containing user information is handed over to shiro's principal, and this entity class needs to be serialized

The entity class needs to implement the Serializable interface

Guess you like

Origin blog.csdn.net/weixin_44732379/article/details/123504178