|
|
|
|
@ -40,8 +40,8 @@ public class ShiroConfig { |
|
|
|
|
// "anon")来配置匿名访问,必须配置到每个静态目录
|
|
|
|
|
filterChainDefinitionMap.put("/static/**", "anon"); |
|
|
|
|
filterChainDefinitionMap.put("/html/**", "anon"); |
|
|
|
|
filterChainDefinitionMap.put(managerPath+"/checkLogin.do", "anon"); |
|
|
|
|
filterChainDefinitionMap.put(managerPath+"/login.do", "anon"); |
|
|
|
|
filterChainDefinitionMap.put(managerPath+"/ms/checkLogin.do", "anon"); |
|
|
|
|
filterChainDefinitionMap.put(managerPath+"/ms/login.do", "anon"); |
|
|
|
|
// 配置退出 过滤器,其中的具体的退出代码Shiro已经替我们实现了
|
|
|
|
|
filterChainDefinitionMap.put("/logout", "logout"); |
|
|
|
|
// <!-- 过滤链定义,从上向下顺序执行,一般将/**放在最为下边 -->:这是一个坑呢,一不小心代码就不好使了;
|
|
|
|
|
|