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
d6819666
Commit
d6819666
authored
Mar 23, 2021
by
yanzg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
不记录系统日志
parent
1b7f9f54
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
9 deletions
+1
-9
LogFeignDefault.java
.../main/java/com/yanzuoguang/cloud/aop/LogFeignDefault.java
+1
-9
No files found.
yzg-util-cloud/src/main/java/com/yanzuoguang/cloud/aop/LogFeignDefault.java
View file @
d6819666
...
@@ -2,11 +2,8 @@ package com.yanzuoguang.cloud.aop;
...
@@ -2,11 +2,8 @@ package com.yanzuoguang.cloud.aop;
import
com.yanzuoguang.util.vo.LogVo
;
import
com.yanzuoguang.util.vo.LogVo
;
import
com.yanzuoguang.util.vo.ResponseResult
;
import
com.yanzuoguang.util.vo.ResponseResult
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Component
;
import
org.springframework.stereotype.Component
;
import
java.util.List
;
/**
/**
* 日志默认处理服务
* 日志默认处理服务
*
*
...
@@ -17,9 +14,6 @@ public class LogFeignDefault implements LogFeign {
...
@@ -17,9 +14,6 @@ public class LogFeignDefault implements LogFeign {
private
boolean
init
=
false
;
private
boolean
init
=
false
;
@Autowired
protected
List
<
LogFeign
>
logFeigns
;
/**
/**
* 保存日志对象
* 保存日志对象
*
*
...
@@ -30,9 +24,7 @@ public class LogFeignDefault implements LogFeign {
...
@@ -30,9 +24,7 @@ public class LogFeignDefault implements LogFeign {
public
ResponseResult
<
String
>
save
(
LogVo
log
)
{
public
ResponseResult
<
String
>
save
(
LogVo
log
)
{
if
(!
init
)
{
if
(!
init
)
{
init
=
true
;
init
=
true
;
if
(
logFeigns
.
size
()
==
1
)
{
System
.
err
.
println
(
"请添加处理日志服务,实现LogFeign接口!"
);
System
.
err
.
println
(
"请添加处理日志服务,实现LogFeign接口!"
);
}
}
}
return
ResponseResult
.
result
(
"处理成功"
);
return
ResponseResult
.
result
(
"处理成功"
);
}
}
...
...
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