Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
operation-control-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王锦盛
operation-control-platform
Commits
54d65da2
Commit
54d65da2
authored
Feb 23, 2022
by
王锦盛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
2bf186f5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
pom.xml
pom.xml
+1
-1
src/main/java/com/pms/ocp/common/aspect/InterfaceLogAspect.java
...in/java/com/pms/ocp/common/aspect/InterfaceLogAspect.java
+2
-2
No files found.
pom.xml
View file @
54d65da2
...
...
@@ -222,7 +222,7 @@
<artifactId>
spring-boot-maven-plugin
</artifactId>
<version>
${spring-boot.version}
</version>
<configuration>
<mainClass>
com.
beagle.base
.StartApp
</mainClass>
<mainClass>
com.
pms.ocp
.StartApp
</mainClass>
</configuration>
</plugin>
</plugins>
...
...
src/main/java/com/pms/ocp/common/aspect/InterfaceLogAspect.java
View file @
54d65da2
...
...
@@ -31,13 +31,13 @@ import lombok.extern.slf4j.Slf4j;
@Component
public
class
InterfaceLogAspect
{
@Before
(
"execution(* com.
beagle.base
.controller..*.*(..))"
)
@Before
(
"execution(* com.
pms.ocp
.controller..*.*(..))"
)
public
void
before
(
JoinPoint
joinPoint
)
{
// 打印接口请求参数日志
this
.
logInterfaceRequest
(
joinPoint
);
}
@Around
(
"execution(* com.
beagle.base
.controller..*.*(..))"
)
@Around
(
"execution(* com.
pms.ocp
.controller..*.*(..))"
)
public
Object
around
(
ProceedingJoinPoint
proceedingJoinPoint
)
throws
Throwable
{
long
startTime
=
System
.
currentTimeMillis
();
Object
result
=
proceedingJoinPoint
.
proceed
();
...
...
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