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
Litemall
Commits
0a1a3d9e
Commit
0a1a3d9e
authored
Apr 19, 2019
by
Junling Bu
Browse files
chore[litemall-admin-api]: shiro配置允许admin/index/index匿名访问
parent
880cdd0c
Changes
1
Hide whitespace changes
Inline
Side-by-side
litemall-admin-api/src/main/java/org/linlinjava/litemall/admin/config/ShiroConfig.java
View file @
0a1a3d9e
...
...
@@ -33,6 +33,7 @@ public class ShiroConfig {
filterChainDefinitionMap
.
put
(
"/admin/auth/401"
,
"anon"
);
filterChainDefinitionMap
.
put
(
"/admin/auth/index"
,
"anon"
);
filterChainDefinitionMap
.
put
(
"/admin/auth/403"
,
"anon"
);
filterChainDefinitionMap
.
put
(
"/admin/index/index"
,
"anon"
);
filterChainDefinitionMap
.
put
(
"/admin/**"
,
"authc"
);
shiroFilterFactoryBean
.
setLoginUrl
(
"/admin/auth/401"
);
...
...
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