Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
S
shop
Project
Project
Details
Activity
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
曲欣亮
shop
Commits
b2dbaf51
Commit
b2dbaf51
authored
Feb 27, 2024
by
张永
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
V1.1.7.3
parent
f02d2829
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
3 deletions
+11
-3
pom.xml
pom.xml
+1
-1
IDCSystemLogAspect.java
...a/com/egolm/shop/common/component/IDCSystemLogAspect.java
+7
-2
application.properties
src/main/resources/application.properties
+1
-0
redmine.html
src/main/resources/templates/redmine.html
+2
-0
No files found.
pom.xml
View file @
b2dbaf51
...
@@ -209,7 +209,7 @@
...
@@ -209,7 +209,7 @@
</executions>
</executions>
<configuration>
<configuration>
<repository>
dockerhub.linkfern.com/b2c/shopapi
</repository>
<repository>
dockerhub.linkfern.com/b2c/shopapi
</repository>
<tag>
V1.1.7.
2
</tag>
<tag>
V1.1.7.
3
</tag>
<buildArgs>
<buildArgs>
<JAR_FILE>
${project.build.finalName}.jar
</JAR_FILE>
<JAR_FILE>
${project.build.finalName}.jar
</JAR_FILE>
</buildArgs>
</buildArgs>
...
...
src/main/java/com/egolm/shop/common/component/IDCSystemLogAspect.java
View file @
b2dbaf51
...
@@ -50,6 +50,10 @@ public class IDCSystemLogAspect {
...
@@ -50,6 +50,10 @@ public class IDCSystemLogAspect {
@Value
(
"${server.shop.name:shop}"
)
@Value
(
"${server.shop.name:shop}"
)
private
String
serverShopName
;
private
String
serverShopName
;
@Value
(
"${server.shop.insert.idcsystemlog:false}"
)
private
boolean
isCreateLog
;
// 扫描使用@LogResource注解的方法
// 扫描使用@LogResource注解的方法
@Pointcut
(
"@annotation(com.egolm.shop.common.component.IDCLogResource)"
)
@Pointcut
(
"@annotation(com.egolm.shop.common.component.IDCLogResource)"
)
public
void
logPointCut
()
{
public
void
logPointCut
()
{
...
@@ -82,10 +86,11 @@ public class IDCSystemLogAspect {
...
@@ -82,10 +86,11 @@ public class IDCSystemLogAspect {
statusCode
=
500
;
statusCode
=
500
;
/** CHECKSTYLE:ON:MagicNumber */
/** CHECKSTYLE:ON:MagicNumber */
}
}
System
.
out
.
println
();
if
(
isCreateLog
)
{
syncSaveLog
(
point
,
startTime
,
new
Date
(),
exception
,
result
,
statusCode
);
syncSaveLog
(
point
,
startTime
,
new
Date
(),
exception
,
result
,
statusCode
);
}
}
}
}
}
@Async
@Async
void
syncSaveLog
(
ProceedingJoinPoint
joinPoint
,
Date
startTime
,
Date
endTime
,
void
syncSaveLog
(
ProceedingJoinPoint
joinPoint
,
Date
startTime
,
Date
endTime
,
...
...
src/main/resources/application.properties
View file @
b2dbaf51
...
@@ -7,6 +7,7 @@ server.session.timeout=90000
...
@@ -7,6 +7,7 @@ server.session.timeout=90000
server.tomcat.uri-encoding
=
utf-8
server.tomcat.uri-encoding
=
utf-8
server.shop.name
=
shop
server.shop.name
=
shop
server.shop.insert.idcsystemlog
=
false
spring.http.multipart.maxFileSize
=
5MB
spring.http.multipart.maxFileSize
=
5MB
spring.http.multipart.maxRequestSize
=
5MB
spring.http.multipart.maxRequestSize
=
5MB
...
...
src/main/resources/templates/redmine.html
View file @
b2dbaf51
...
@@ -24,6 +24,8 @@
...
@@ -24,6 +24,8 @@
</head>
</head>
<body>
<body>
<div
id=
"app"
>
<div
id=
"app"
>
<el-divider
content-position=
"left"
>
V1.1.7.3 2024-2-27
</el-divider>
<p
class=
"title"
>
1.增加开关,是否写idcSystemLog表
</p>
<el-divider
content-position=
"left"
>
V1.1.7.2 2024-1-29
</el-divider>
<el-divider
content-position=
"left"
>
V1.1.7.2 2024-1-29
</el-divider>
<p
class=
"title"
>
1.增加server.shop.name参数,便于分布式布署区分日志。
</p>
<p
class=
"title"
>
1.增加server.shop.name参数,便于分布式布署区分日志。
</p>
<el-divider
content-position=
"left"
>
V1.1.7.1 2024-1-18
</el-divider>
<el-divider
content-position=
"left"
>
V1.1.7.1 2024-1-18
</el-divider>
...
...
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