1,在web.xml中配置fiter,如下所示
shiroFilter org.springframework.web.filter.DelegatingFilterProxy targetFilterLifecycle true targetBeanName shiroFilter shiroFilter /*
2,上面配置了shiroFilter,那么在spring-shiro.xml中要配置shirofilter bean
/styles/easyui/** = anon /scripts/easyui/** = anon /styles/** = anon /images/** = anon /logout = logout /login = anon /** = authc
3,在spring-shiro.xml中添加securityManager和自定义realm,ecacheManager的相关配置
3,在spring-shiro.xml中,开启shiro的注解支持
4,在spring-shiro.xml中配置shiro认证异常的页面
/errorpage/refuse