Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
MCMS
Commits
1a101f61
Commit
1a101f61
authored
Jan 04, 2019
by
ms-dev
Browse files
shiro配置优化
parent
f68555e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/net/mingsoft/config/ShiroConfig.java
View file @
1a101f61
...
@@ -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"
);
// <!-- 过滤链定义,从上向下顺序执行,一般将/**放在最为下边 -->:这是一个坑呢,一不小心代码就不好使了;
// <!-- 过滤链定义,从上向下顺序执行,一般将/**放在最为下边 -->:这是一个坑呢,一不小心代码就不好使了;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment