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
3a63dce2
Commit
3a63dce2
authored
Jul 20, 2018
by
stylefeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改api为gunsapi开头
parent
7b901b3c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
guns-admin/src/main/java/com/stylefeng/guns/config/web/ShiroConfig.java
+1
-1
guns-admin/src/main/java/com/stylefeng/guns/config/web/WebConfig.java
+1
-1
No files found.
guns-admin/src/main/java/com/stylefeng/guns/config/web/ShiroConfig.java
View file @
3a63dce2
...
@@ -161,7 +161,7 @@ public class ShiroConfig {
...
@@ -161,7 +161,7 @@ public class ShiroConfig {
*/
*/
Map
<
String
,
String
>
hashMap
=
new
LinkedHashMap
<>();
Map
<
String
,
String
>
hashMap
=
new
LinkedHashMap
<>();
hashMap
.
put
(
"/static/**"
,
"anon"
);
hashMap
.
put
(
"/static/**"
,
"anon"
);
hashMap
.
put
(
"/api/**"
,
"anon"
);
hashMap
.
put
(
"/
guns
api/**"
,
"anon"
);
hashMap
.
put
(
"/login"
,
"anon"
);
hashMap
.
put
(
"/login"
,
"anon"
);
hashMap
.
put
(
"/global/sessionError"
,
"anon"
);
hashMap
.
put
(
"/global/sessionError"
,
"anon"
);
hashMap
.
put
(
"/kaptcha"
,
"anon"
);
hashMap
.
put
(
"/kaptcha"
,
"anon"
);
...
...
guns-admin/src/main/java/com/stylefeng/guns/config/web/WebConfig.java
View file @
3a63dce2
...
@@ -56,7 +56,7 @@ public class WebConfig extends WebMvcConfigurerAdapter {
...
@@ -56,7 +56,7 @@ public class WebConfig extends WebMvcConfigurerAdapter {
*/
*/
@Override
@Override
public
void
addInterceptors
(
InterceptorRegistry
registry
)
{
public
void
addInterceptors
(
InterceptorRegistry
registry
)
{
registry
.
addInterceptor
(
new
RestApiInteceptor
()).
addPathPatterns
(
"/api/**"
);
registry
.
addInterceptor
(
new
RestApiInteceptor
()).
addPathPatterns
(
"/
guns
api/**"
);
}
}
/**
/**
...
...
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