Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wwwanlingxiao
mall
Commits
76fed440
Commit
76fed440
authored
Apr 11, 2021
by
macro
Browse files
日志处理IP问题修复
parent
f0c4fb34
Changes
1
Hide whitespace changes
Inline
Side-by-side
mall-common/src/main/java/com/macro/mall/common/log/WebLogAspect.java
View file @
76fed440
...
...
@@ -70,7 +70,8 @@ public class WebLogAspect {
long
endTime
=
System
.
currentTimeMillis
();
String
urlStr
=
request
.
getRequestURL
().
toString
();
webLog
.
setBasePath
(
StrUtil
.
removeSuffix
(
urlStr
,
URLUtil
.
url
(
urlStr
).
getPath
()));
webLog
.
setIp
(
request
.
getRemoteUser
());
webLog
.
setUsername
(
request
.
getRemoteUser
());
webLog
.
setIp
(
request
.
getRemoteAddr
());
webLog
.
setMethod
(
request
.
getMethod
());
webLog
.
setParameter
(
getParameter
(
method
,
joinPoint
.
getArgs
()));
webLog
.
setResult
(
result
);
...
...
Write
Preview
Supports
Markdown
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