Spring Security通过依赖注入与过滤器来进行安全检查与认证。作用流程图如下: 参考博文:https://blog.csdn.net/u012702547/article/details/89629415