Commit 1a101f61 authored by ms-dev's avatar ms-dev

shiro配置优化

parent f68555e6
...@@ -40,8 +40,8 @@ public class ShiroConfig { ...@@ -40,8 +40,8 @@ public class ShiroConfig {
// "anon")来配置匿名访问,必须配置到每个静态目录 // "anon")来配置匿名访问,必须配置到每个静态目录
filterChainDefinitionMap.put("/static/**", "anon"); filterChainDefinitionMap.put("/static/**", "anon");
filterChainDefinitionMap.put("/html/**", "anon"); filterChainDefinitionMap.put("/html/**", "anon");
filterChainDefinitionMap.put(managerPath+"/checkLogin.do", "anon"); filterChainDefinitionMap.put(managerPath+"/ms/checkLogin.do", "anon");
filterChainDefinitionMap.put(managerPath+"/login.do", "anon"); filterChainDefinitionMap.put(managerPath+"/ms/login.do", "anon");
// 配置退出 过滤器,其中的具体的退出代码Shiro已经替我们实现了 // 配置退出 过滤器,其中的具体的退出代码Shiro已经替我们实现了
filterChainDefinitionMap.put("/logout", "logout"); filterChainDefinitionMap.put("/logout", "logout");
// <!-- 过滤链定义,从上向下顺序执行,一般将/**放在最为下边 -->:这是一个坑呢,一不小心代码就不好使了; // <!-- 过滤链定义,从上向下顺序执行,一般将/**放在最为下边 -->:这是一个坑呢,一不小心代码就不好使了;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment