The difference between Spring Security and Shiro
Same points
1. Authentication function
2. Authorization function
3. Encryption function
4. Session management
5. Cache support
6. RememberMe function
...
Differences
1. Spring Security is developed based on Spring. If the project uses Spring as the basis, it must cooperate with Spring Security for permissions More convenient, but Shiro needs to be integrated with Spring for development;
2. Spring Security has richer functions than Shiro, such as security maintenance;
3. Spring Security community resources are relatively more comprehensive than Shiro Rich;
4. Shiro is relatively simple to configure and use, but Spring Security is more complicated to get started with;
5. Shiro has low dependencies, does not require any frameworks and containers, and can run independently. Spring Security Depends on Spring container;
6. Shiro can not only be used in the web, it can work in any application environment. Perhaps one of the most important benefits of Shiro when it comes to clustering sessions is that its sessions are container independent.
(Related video tutorial sharing:java video tutorial)
The above is the detailed content of The difference between Spring Security and Shiro. For more information, please follow other related articles on the PHP Chinese website!