Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-enterprise-base
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
base_platform_enterprise
gic-enterprise-base
Commits
c6ad0fd2
Commit
c6ad0fd2
authored
Mar 18, 2020
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
token日志打印
parent
86324f50
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
AuthInterceptor.java
.../java/com/gic/enterprise/interceptor/AuthInterceptor.java
+5
-2
No files found.
gic-enterprise-common/src/main/java/com/gic/enterprise/interceptor/AuthInterceptor.java
View file @
c6ad0fd2
...
@@ -58,6 +58,11 @@ public class AuthInterceptor extends HandlerInterceptorAdapter {
...
@@ -58,6 +58,11 @@ public class AuthInterceptor extends HandlerInterceptorAdapter {
if
(!(
object
.
getClass
().
isAssignableFrom
(
HandlerMethod
.
class
)))
{
if
(!(
object
.
getClass
().
isAssignableFrom
(
HandlerMethod
.
class
)))
{
return
true
;
return
true
;
}
}
//获取uri
String
uri
=
request
.
getRequestURI
();
log
.
info
(
"权限拦截token url:{}"
,
uri
);
HandlerMethod
handler
=
(
HandlerMethod
)
object
;
HandlerMethod
handler
=
(
HandlerMethod
)
object
;
//免登录接口路由
//免登录接口路由
IgnoreLogin
ignoreLogin
=
handler
.
getMethodAnnotation
(
IgnoreLogin
.
class
);
IgnoreLogin
ignoreLogin
=
handler
.
getMethodAnnotation
(
IgnoreLogin
.
class
);
...
@@ -65,8 +70,6 @@ public class AuthInterceptor extends HandlerInterceptorAdapter {
...
@@ -65,8 +70,6 @@ public class AuthInterceptor extends HandlerInterceptorAdapter {
return
true
;
return
true
;
}
}
//获取uri
String
uri
=
request
.
getRequestURI
();
//操作项标志位
//操作项标志位
String
isControl
=
request
.
getHeader
(
"isControl"
);
String
isControl
=
request
.
getHeader
(
"isControl"
);
//是否是操作项请求
//是否是操作项请求
...
...
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