Why should persistent session
Restart the application, without user awareness, we can continue to continue to have access to the original state
How persistent
important point
- DAO object serialization need to implement the interface Serializable
- As before calling logout interfaces, which will delete the corresponding redis after logout request the key, that is, delete the corresponding token
Common Bean Configuration
Source Address: https://github.com/woxbwo/is-rbac-shiro-service/tree/master/src/main/java/com/is/shiro/service/config
carry out! ! !