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
24b26038
Commit
24b26038
authored
May 13, 2022
by
yanzg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复等待时间
parent
558ea3b4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
AspectLogUrl.java
...src/main/java/com/yanzuoguang/cloud/aop/AspectLogUrl.java
+5
-5
No files found.
yzg-util-cloud/src/main/java/com/yanzuoguang/cloud/aop/AspectLogUrl.java
View file @
24b26038
...
...
@@ -35,14 +35,14 @@ public class AspectLogUrl {
public
String
getMethodUrl
(
ProceedingJoinPoint
joinPoint
)
{
String
url
=
StringHelper
.
EMPTY
;
Signature
signature
=
joinPoint
.
getSignature
();
Class
declaringType
=
signature
.
getDeclaringType
();
Class
<?>
declaringType
=
signature
.
getDeclaringType
();
String
name
=
signature
.
getName
();
FeignClient
feignClient
=
(
FeignClient
)
declaringType
.
getAnnotation
(
FeignClient
.
class
);
FeignClient
feignClient
=
declaringType
.
getAnnotation
(
FeignClient
.
class
);
// 类路径
RequestMapping
[]
classRequests
=
(
RequestMapping
[])
declaringType
.
getAnnotationsByType
(
RequestMapping
.
class
);
PostMapping
[]
classPosts
=
(
PostMapping
[])
declaringType
.
getAnnotationsByType
(
PostMapping
.
class
);
GetMapping
[]
classGets
=
(
GetMapping
[])
declaringType
.
getAnnotationsByType
(
GetMapping
.
class
);
RequestMapping
[]
classRequests
=
declaringType
.
getAnnotationsByType
(
RequestMapping
.
class
);
PostMapping
[]
classPosts
=
declaringType
.
getAnnotationsByType
(
PostMapping
.
class
);
GetMapping
[]
classGets
=
declaringType
.
getAnnotationsByType
(
GetMapping
.
class
);
List
<
Annotation
>
annotation
=
new
ArrayList
<>();
ArrayHelper
.
addList
(
annotation
,
classRequests
,
classPosts
,
classGets
);
...
...
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