Commit 019ca399 by yuwei

项目初始化

parent ab9dd386
......@@ -88,7 +88,6 @@ public class LogAspect {
String methodName = joinPoint.getSignature().getName();
logDto.setModule(logAop.module()).setTitle(logAop.value())
.setClassName(className).setMethodName(methodName);
log.info("[类名]:{},[方法]:{},[模块]:{},[描述]:{}", className, methodName, logAop.module(), logAop.value());
// 异步保存数据库
asyncTask.doTask(logDto);
}
......
......@@ -17,12 +17,7 @@ public class AsyncTask {
@Async("dataLogExecutor")
public void doTask(LogDto logDto) {
log.info("开始做任务--模拟日志");
long start = System.currentTimeMillis();
log.info("日志体{}", logDto.toString());
logServiceFeign.saveLog(logDto);
long end = System.currentTimeMillis();
log.info("完成任务,耗时:" + (end - start) + "毫秒");
}
}
\ No newline at end of file
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