Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
guns-vip
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenjunxiong
guns-vip
Commits
bf1a20eb
Commit
bf1a20eb
authored
Sep 05, 2017
by
naan1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新shiro
parent
91705cf2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
guns-admin/pom.xml
+4
-4
guns-admin/src/main/java/com/stylefeng/guns/config/web/ShiroConfig.java
+4
-0
No files found.
guns-admin/pom.xml
View file @
bf1a20eb
...
@@ -81,6 +81,10 @@
...
@@ -81,6 +81,10 @@
</exclusion>
</exclusion>
</exclusions>
</exclusions>
</dependency>
</dependency>
<dependency>
<groupId>
org.ehcache
</groupId>
<artifactId>
ehcache
</artifactId>
</dependency>
<!-- 需要分布式session的话需要放开注释
<!-- 需要分布式session的话需要放开注释
<dependency>
<dependency>
...
@@ -97,10 +101,6 @@
...
@@ -97,10 +101,6 @@
<artifactId>
kaptcha
</artifactId>
<artifactId>
kaptcha
</artifactId>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
org.ehcache
</groupId>
<artifactId>
ehcache
</artifactId>
</dependency>
<dependency>
<groupId>
com.google.zxing
</groupId>
<groupId>
com.google.zxing
</groupId>
<artifactId>
core
</artifactId>
<artifactId>
core
</artifactId>
</dependency>
</dependency>
...
...
guns-admin/src/main/java/com/stylefeng/guns/config/web/ShiroConfig.java
View file @
bf1a20eb
...
@@ -142,6 +142,10 @@ public class ShiroConfig {
...
@@ -142,6 +142,10 @@ public class ShiroConfig {
* authc 需要认证
* authc 需要认证
* user 验证通过或RememberMe登录的都可以
* user 验证通过或RememberMe登录的都可以
*
*
* 当应用开启了rememberMe时,用户下次访问时可以是一个user,但不会是authc,因为authc是需要重新认证的
*
* 顺序从上到下,优先级依次降低
*
*/
*/
Map
<
String
,
String
>
hashMap
=
new
LinkedHashMap
<>();
Map
<
String
,
String
>
hashMap
=
new
LinkedHashMap
<>();
hashMap
.
put
(
"/static/**"
,
"anon"
);
hashMap
.
put
(
"/static/**"
,
"anon"
);
...
...
Write
Preview
Markdown
is supported
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