Commit f02d2829 authored by 张永's avatar 张永

V1.1.7.2

parent b1152005
...@@ -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.1</tag> <tag>V1.1.7.2</tag>
<buildArgs> <buildArgs>
<JAR_FILE>${project.build.finalName}.jar</JAR_FILE> <JAR_FILE>${project.build.finalName}.jar</JAR_FILE>
</buildArgs> </buildArgs>
......
...@@ -47,7 +47,8 @@ public class IDCSystemLogAspect { ...@@ -47,7 +47,8 @@ public class IDCSystemLogAspect {
@Autowired @Autowired
private JdbcTemplate jdbcTemplate; private JdbcTemplate jdbcTemplate;
@Value("${server.shop.name:shop}")
private String serverShopName;
// 扫描使用@LogResource注解的方法 // 扫描使用@LogResource注解的方法
@Pointcut("@annotation(com.egolm.shop.common.component.IDCLogResource)") @Pointcut("@annotation(com.egolm.shop.common.component.IDCLogResource)")
...@@ -90,7 +91,7 @@ public class IDCSystemLogAspect { ...@@ -90,7 +91,7 @@ public class IDCSystemLogAspect {
void syncSaveLog(ProceedingJoinPoint joinPoint, Date startTime, Date endTime, void syncSaveLog(ProceedingJoinPoint joinPoint, Date startTime, Date endTime,
String exception, String result, int statusCode) { String exception, String result, int statusCode) {
TIdcServicesLogs log = new TIdcServicesLogs(); TIdcServicesLogs log = new TIdcServicesLogs();
log.setsChannel("shop"); log.setsChannel(serverShopName);
try { try {
//获取请求参数,不通过 joinPoint.getArgs() 获取。 //获取请求参数,不通过 joinPoint.getArgs() 获取。
......
...@@ -5,6 +5,9 @@ server.port=30005 ...@@ -5,6 +5,9 @@ server.port=30005
server.servlet.context-path=/shop server.servlet.context-path=/shop
server.session.timeout=90000 server.session.timeout=90000
server.tomcat.uri-encoding=utf-8 server.tomcat.uri-encoding=utf-8
server.shop.name=shop
spring.http.multipart.maxFileSize=5MB spring.http.multipart.maxFileSize=5MB
spring.http.multipart.maxRequestSize=5MB spring.http.multipart.maxRequestSize=5MB
spring.http.encoding.force=true spring.http.encoding.force=true
......
...@@ -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.2 2024-1-29</el-divider>
<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>
<p class="title">1.张亮观测云测试</p> <p class="title">1.张亮观测云测试</p>
<el-divider content-position="left">V1.1.7 2024-1-11</el-divider> <el-divider content-position="left">V1.1.7 2024-1-11</el-divider>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment