Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
framework-tools
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit d02c15b4
authored
Jul 04, 2024
by
henry
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加日志处理
1 parent
f4c5f097
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
5 deletions
README.md
arch-clouds/log/src/main/java/org/arch/log/aspect/AutoLogConfigAspect.java
README.md
View file @
d02c15b
...
...
@@ -11,7 +11,7 @@
## 1.6 system-manage 系统管理微服务(字典管理、菜单管理、用户及组织管理)
## 1.7 arch-gateway
## 1.8 arch-base 基础服务-包括工具类-及对象实体
# <span style="color: red;">*************
*************************************************重要*************************************************
***********</span>
# <span style="color: red;">*************
重要
***********</span>
## vo(View Object):视图对象,用于展示层
## dto(Data Transfer Object):数据传输对象
## pojo(Persistent Object):持久化对象
...
...
arch-clouds/log/src/main/java/org/arch/log/aspect/AutoLogConfigAspect.java
View file @
d02c15b
...
...
@@ -80,9 +80,7 @@ public class AutoLogConfigAspect {
HttpServletResponse
response
=
requestAttributes
.
getResponse
();
MethodSignature
signature
=
(
MethodSignature
)
joinPoint
.
getSignature
();
ApiOperation
operation
=
signature
.
getMethod
().
getAnnotation
(
ApiOperation
.
class
);
Method
method
=
signature
.
getMethod
();
Object
[]
args
=
joinPoint
.
getArgs
();
Map
<
String
,
String
[]>
parameterMap
=
new
HashMap
<
String
,
String
[]>();
String
requParam
=
""
;
String
requestMethod
=
request
.
getMethod
();
// 获取请求参数集合
...
...
@@ -135,8 +133,6 @@ public class AutoLogConfigAspect {
// 保存数据库
sysEventLog
.
setCreateTime
(
new
Date
());
sysEventLog
.
setRequestTime
(
new
Date
());
// System.out.println(sysEventLog);
sysEventLogService
.
save
(
sysEventLog
);
}
catch
(
Exception
exp
)
{
// 记录本地异常日志
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment