Commit 3a48b072 authored by yanzg's avatar yanzg

不记录系统日志

parent b01982d7
......@@ -2,8 +2,11 @@ package com.yanzuoguang.cloud.aop;
import com.yanzuoguang.util.vo.LogVo;
import com.yanzuoguang.util.vo.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import java.util.List;
/**
* 日志默认处理服务
*
......@@ -14,6 +17,9 @@ public class LogFeignDefault implements LogFeign {
private boolean init = false;
@Autowired
protected List<LogFeign> logFeigns;
/**
* 保存日志对象
*
......@@ -24,8 +30,10 @@ public class LogFeignDefault implements LogFeign {
public ResponseResult<String> save(LogVo log) {
if (!init) {
init = true;
if (logFeigns.size() == 1) {
System.err.println("请添加处理日志服务,实现LogFeign接口!");
}
}
return ResponseResult.result("处理成功");
}
}
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