Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
holmes
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
QA
holmes
Commits
af9cf44c
Commit
af9cf44c
authored
May 10, 2021
by
黎博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增debug日志
parent
9578e628
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
XinchengInterceptor.java
...in/java/cn/qg/holmes/interceptor/XinchengInterceptor.java
+5
-1
No files found.
src/main/java/cn/qg/holmes/interceptor/XinchengInterceptor.java
View file @
af9cf44c
...
...
@@ -11,6 +11,7 @@ import com.alibaba.fastjson.JSON;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.lang.Nullable
;
import
org.springframework.web.servlet.HandlerInterceptor
;
...
...
@@ -25,6 +26,7 @@ import java.util.*;
import
static
cn
.
qg
.
holmes
.
interceptor
.
InterceptorUtils
.*;
@Slf4j
public
class
XinchengInterceptor
implements
HandlerInterceptor
{
@Autowired
...
...
@@ -110,7 +112,9 @@ public class XinchengInterceptor implements HandlerInterceptor {
requestData
.
append
(
str
);
}
br
.
close
();
Map
<
String
,
String
>
paramsMap
=
JSON
.
parseObject
(
String
.
valueOf
(
requestData
),
Map
.
class
);
log
.
info
(
"获取到的请求参数为:{}"
,
requestData
);
Map
<
String
,
String
>
paramsMap
=
JSON
.
parseObject
(
requestData
.
toString
(),
Map
.
class
);
log
.
info
(
"转换成Map:{}"
,
paramsMap
);
return
paramsMap
;
}
...
...
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