Commit 3b744dbc authored by yanzg's avatar yanzg

将源码打包进jar包

parent ba8c27ef
...@@ -3,6 +3,7 @@ package com.yanzuoguang.log; ...@@ -3,6 +3,7 @@ package com.yanzuoguang.log;
import com.yanzuoguang.util.cache.MemoryCache; import com.yanzuoguang.util.cache.MemoryCache;
import com.yanzuoguang.util.helper.DateHelper; import com.yanzuoguang.util.helper.DateHelper;
import com.yanzuoguang.util.helper.StringHelper; import com.yanzuoguang.util.helper.StringHelper;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
/** /**
...@@ -84,6 +85,7 @@ public class LogCountTime { ...@@ -84,6 +85,7 @@ public class LogCountTime {
* *
* @param url 请求地址 * @param url 请求地址
*/ */
@Async
public void start(String url) { public void start(String url) {
LogUrlCountVo count = getCount(url); LogUrlCountVo count = getCount(url);
count.addStart(); count.addStart();
...@@ -96,6 +98,7 @@ public class LogCountTime { ...@@ -96,6 +98,7 @@ public class LogCountTime {
* @param time 执行时间 * @param time 执行时间
* @param isError 是否错误 * @param isError 是否错误
*/ */
@Async
public void finish(String url, long time, boolean isError) { public void finish(String url, long time, boolean isError) {
LogUrlCountVo count = getCount(url); LogUrlCountVo count = getCount(url);
count.addFinish(time, isError); count.addFinish(time, isError);
......
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