Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yanxuan-qc-change-system
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
yx-qc-change-flow
yanxuan-qc-change-system
Commits
1b75b7ea
Commit
1b75b7ea
authored
Dec 07, 2022
by
“zcwang”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add: 打印拦截器
parent
6d0b8026
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
AdminUserLoginInterceptor.java
.../yanxuan/change/web/config/AdminUserLoginInterceptor.java
+12
-0
No files found.
yanxuan-qc-change-system-web/src/main/java/com/netease/mail/yanxuan/change/web/config/AdminUserLoginInterceptor.java
View file @
1b75b7ea
package
com
.
netease
.
mail
.
yanxuan
.
change
.
web
.
config
;
import
java.util.Enumeration
;
import
java.util.HashMap
;
import
java.util.Map
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
...
...
@@ -18,6 +22,14 @@ public class AdminUserLoginInterceptor implements HandlerInterceptor {
@Override
public
boolean
preHandle
(
HttpServletRequest
request
,
HttpServletResponse
response
,
Object
handler
)
throws
Exception
{
Map
<
String
,
String
>
headerMap
=
new
HashMap
<>();
Enumeration
<
String
>
enumeration
=
request
.
getHeaderNames
();
while
(
enumeration
.
hasMoreElements
())
{
String
name
=
enumeration
.
nextElement
();
String
value
=
request
.
getHeader
(
name
);
headerMap
.
put
(
name
,
value
);
}
log
.
info
(
"adminUserLoginInterceptor headerMap ={}"
,
headerMap
);
String
uid
=
request
.
getHeader
(
"uid"
);
log
.
info
(
"adminUserLoginInterceptor uid ={}"
,
uid
);
if
(
uid
==
null
){
...
...
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