标签:
Spring shiro filter 的初始化
org.apache.shiro.spring.web.ShiroFilterFactoryBean#getObject > createInstance
引出:
1. 接口 filterChainManager 管理所有的fileter和过滤器链
默认实现 DefaultFilterChainManager
默认过滤器设置
org.apache.shiro.web.filter.mgt.DefaultFilter
anon(AnonymousFilter.class), authc(FormAuthenticationFilter.class), authcBasic(BasicHttpAuthenticationFilter.class), logout(LogoutFilter.class), noSessionCreation(NoSessionCreationFilter.class), perms(PermissionsAuthorizationFilter.class), port(PortFilter.class), rest(HttpMethodPermissionFilter.class), roles(RolesAuthorizationFilter.class), ssl(SslFilter.class), user(UserFilter.class);
2. 接口
org.apache.shiro.web.filter.mgt.FilterChainResolver
主要的实现类 也只有 PathMatchingFilterChainResolver
主要提供 决定根据访问路径 确定该请求使用那个过滤器链
标签:
原文地址:http://my.oschina.net/u/1156053/blog/359477