Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
Y
yzg-util
Project
Project
Details
Activity
Releases
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
YZG
yzg-util
Commits
90d10abb
Commit
90d10abb
authored
Oct 18, 2019
by
yanzg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接口文档的支持
parent
0b6ef8a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
BaseRequestAspect.java
...ain/java/com/yanzuoguang/cloud/aop/BaseRequestAspect.java
+5
-1
No files found.
yzg-util-cloud/src/main/java/com/yanzuoguang/cloud/aop/BaseRequestAspect.java
View file @
90d10abb
...
@@ -33,6 +33,9 @@ public class BaseRequestAspect implements ThreadNext.Next {
...
@@ -33,6 +33,9 @@ public class BaseRequestAspect implements ThreadNext.Next {
@Value
(
"${spring.application.name}"
)
@Value
(
"${spring.application.name}"
)
protected
String
applicationName
;
protected
String
applicationName
;
@Value
(
"${yzg.logCommon:true}"
)
protected
boolean
logCommon
=
true
;
@Value
(
"${yzg.logAll:false}"
)
@Value
(
"${yzg.logAll:false}"
)
protected
boolean
logAll
=
false
;
protected
boolean
logAll
=
false
;
...
@@ -116,6 +119,7 @@ public class BaseRequestAspect implements ThreadNext.Next {
...
@@ -116,6 +119,7 @@ public class BaseRequestAspect implements ThreadNext.Next {
/**
/**
* 获取数据参数
* 获取数据参数
*
* @param args
* @param args
* @return
* @return
*/
*/
...
@@ -203,7 +207,7 @@ public class BaseRequestAspect implements ThreadNext.Next {
...
@@ -203,7 +207,7 @@ public class BaseRequestAspect implements ThreadNext.Next {
Log
.
error
(
joinPoint
.
getSignature
().
getDeclaringType
(),
resultEx
,
"%s [ %s ] time %d ms, result: %s"
,
Log
.
error
(
joinPoint
.
getSignature
().
getDeclaringType
(),
resultEx
,
"%s [ %s ] time %d ms, result: %s"
,
tag
,
name
,
time
,
getMaxString
(
JsonHelper
.
serialize
(
responseResult
)));
tag
,
name
,
time
,
getMaxString
(
JsonHelper
.
serialize
(
responseResult
)));
resultEx
.
printStackTrace
();
resultEx
.
printStackTrace
();
}
else
{
}
else
if
(
logCommon
)
{
Log
.
info
(
joinPoint
.
getSignature
().
getDeclaringType
(),
"%s [ %s ] time %d ms, result: %s"
,
Log
.
info
(
joinPoint
.
getSignature
().
getDeclaringType
(),
"%s [ %s ] time %d ms, result: %s"
,
tag
,
name
,
time
,
getMaxString
(
JsonHelper
.
serialize
(
responseResult
)));
tag
,
name
,
time
,
getMaxString
(
JsonHelper
.
serialize
(
responseResult
)));
}
}
...
...
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